#include <stdio.h>
unsigned long long fact(int n) {
unsigned long long result=1;
while (n-->1) {
result*=(n+1);
}
return (result);
}
int somme(int n) {
int result=0;
while (n-->0) {
result+=(n+1);
}
return (result);
}
int main() {
int x;
scanf("%d",&x);
printf("fact(%d)=%llu\nsomme(%d)=%d",x,fact(x),x,somme(x));
}
To embed this project on your website, copy the following code and paste it into your website's HTML: