修改文件结构。

This commit is contained in:
unlockable
2023-02-21 10:56:54 +08:00
parent a64cfdd9f3
commit 40182871f4
83 changed files with 0 additions and 0 deletions

14
POP/07/Optional02.c Normal file
View File

@@ -0,0 +1,14 @@
#include <stdio.h>
int main() {
int a, b, n, count=0;
printf("Please input a, b, n: ");
scanf("%d %d %d", &a, &b, &n);
for (;n>0;n--) {
count += a*b;
a--;
b--;
}
printf("The total number is %d", count);
return 0;
}