This commit is contained in:
2025-04-21 00:40:30 +02:00
parent 9ccc21edde
commit b8c75fc6d3
87 changed files with 2788 additions and 99 deletions

14
S1/GdCP/square.c Normal file
View File

@@ -0,0 +1,14 @@
#include <stdio.h>
int main() {
int num, sum = 0;
scanf("%d", &num);
while (num > 0) {
sum += num % 10;
num /= 10;
}
printf("%d\n", sum);
return 0;
}