Changes to be committed:
modified: proglabs/lab5/1.c new file: proglabs/lab5/10.c new file: proglabs/lab5/11.c new file: proglabs/lab5/12.c new file: proglabs/lab5/13.c new file: proglabs/lab5/14.c modified: proglabs/lab5/2.c new file: proglabs/lab5/3-1.c new file: proglabs/lab5/3-2.c deleted: proglabs/lab5/3.c new file: proglabs/lab5/4.c new file: proglabs/lab5/5.c new file: proglabs/lab5/6.c new file: proglabs/lab5/7.c new file: proglabs/lab5/8.c new file: proglabs/lab5/9.c new file: proglabs/lab5/tmp.out
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
int r = 6;
|
||||
char l[27] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
int rev = 5;
|
||||
for (int i = 1; i <= r; ++i) {
|
||||
for (int j = 0; j < i; ++j) {
|
||||
printf("%c", l[rev - j]);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user