Advertisement
xathrya

Pola 10

Dec 16th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <cstdio>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int batas = 6;
  7.     int iteri, iterj;
  8.    
  9.     for (iteri=1, iterj=1; batas > 0; iteri++, iterj++)
  10.     {
  11.         printf("%d ", iteri);
  12.         if (iterj % batas == 0)
  13.         {
  14.             printf("\n");
  15.             batas --;
  16.             iterj = 0;
  17.         }
  18.     }
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement