Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- using namespace std;
- int main()
- {
- int batas = 6;
- int iteri, iterj;
- for (iteri=1, iterj=1; batas > 0; iteri++, iterj++)
- {
- printf("%d ", iteri);
- if (iterj % batas == 0)
- {
- printf("\n");
- batas --;
- iterj = 0;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement