Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std; // So we can see cout and endl
- int main()
- {
- int x = 0; // Don't forget to declare variables
- while ( x < 10 ) { // While x is less than 10
- cout<< x <<endl;
- x++; // Update x so the condition can be met eventually
- }
- cin.get();
- }
Add Comment
Please, Sign In to add comment