Advertisement
Eddyking1

Untitled

Aug 21st, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. /*
  9. for (int a=1; a < 16; a ++)
  10. {
  11.     cout << "For Loooop"<< endl;
  12.  
  13. }
  14. */
  15.  
  16. int ROWS=10;
  17.  // 10 rader
  18. for( int y = 1; y < ROWS+1; y++ )
  19. {
  20.         for( int x = 0; x < y; x++)
  21.         {
  22.                 std::cout << "For  ";
  23.         }
  24.         cout << endl;
  25. }
  26.     system("PAUSE");
  27.     return EXIT_SUCCESS;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement