Advertisement
cd62131

power

May 23rd, 2019
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(void) {
  3.   int x = 4, y = 3;
  4.   for (int i = 1; i <= y; ++i) {
  5.     for (int j = 1, s = 1; j <= x; ++j, s = 1) {
  6.       for (int k = i; k; --k, s *= j) {
  7.         ;
  8.       }
  9.       printf("%s%d", (j == 1 ? "" : " "), s);
  10.     }
  11.     puts("");
  12.   }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement