chapter3
This commit is contained in:
13
test/test2.c
Normal file
13
test/test2.c
Normal file
@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int n = 4, a = 1;
|
||||
int i, c;
|
||||
for (i = 1; i <=n; i++) {
|
||||
for (c = 1; c <= i; c++) {
|
||||
printf("%d", a);
|
||||
a++;
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user