C/DeitelC/Chapter3/3over10factoriel.c
2024-03-26 11:15:25 +03:00

15 lines
194 B
C

#include <stdio.h>
int main(void) {
int x;
int i = 1;
int total = 0;
while (i <= 10) {
x = i * i * i;
total += x;
i++;
}
printf("%d", total);
}