Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void) {
- int x = 4, y = 3;
- for (int i = 1; i <= y; ++i) {
- for (int j = 1, s = 1; j <= x; ++j, s = 1) {
- for (int k = i; k; --k, s *= j) {
- ;
- }
- printf("%s%d", (j == 1 ? "" : " "), s);
- }
- puts("");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement