The factorial of 'n' is defined as the product of all integers. ... { int num,m,sum=0; cin>>num; while (num>0) { m=num%10; sum+=m; num/=10; } ...
確定! 回上一頁