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