#include<stdio.h>
int main (){
int num;
printf("welcome to word of factorial "); printf("\n please enter number: "); int sum=0;
int copy=num;
while(num>0){
sum+=num%10;
num/=10;
}
printf("\n the factorial of %d is %d ",copy
,sum
);
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KCmludCBtYWluICgpeyAKCWludCBudW07CglwcmludGYoIndlbGNvbWUgdG8gd29yZCBvZiBmYWN0b3JpYWwgIik7CglwcmludGYoIlxuIHBsZWFzZSBlbnRlciBudW1iZXI6ICIpOwoJc2NhbmYoIiVkIiwmbnVtKTsgCmludCBzdW09MDsKaW50IGNvcHk9bnVtOyAKd2hpbGUobnVtPjApewoJc3VtKz1udW0lMTA7CgludW0vPTEwOwoKCn0gCnByaW50ZigiXG4gdGhlIGZhY3RvcmlhbCBvZiAlZCBpcyAlZCAiLGNvcHksc3VtICApOwogIAogIHJldHVybiAwOwp9