Guest User

Untitled

a guest
May 25th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std; // So we can see cout and endl
  4.  
  5. int main()
  6. {
  7. int x = 0; // Don't forget to declare variables
  8.  
  9. while ( x < 10 ) { // While x is less than 10
  10. cout<< x <<endl;
  11. x++; // Update x so the condition can be met eventually
  12. }
  13. cin.get();
  14. }
Add Comment
Please, Sign In to add comment