Ok so i'm trying to now figure our while, for, do.
Its not explaning one thing:
Can while be done "while" for is happening?
How can you use all 3 in 1 code.
Heres what i tried to write:
Code:#include <iostream> using namespace std; int main() { int x=1; for (int x =1;x>=0||x<=10; x=x+2) { cout<<x<<endl; } cin.get(); while (x==9) {cout<<x-9; } do { cout<<"Learning to count!\n"; } while ( x !=0 || x !=1 ||x !=2 ); cin.get(); }