Saved Bookmarks
| 1. |
What is the purpose of the given program? n is the input number given by the user.#includeint main(){int n,x=0,y;Print("enter an integer:"); Scanf("%d",&n);While(n!=0){y=n%10;x=x*10+y;n=n/10;}print("output is =%d",x);return0;}A)sum of the digits of a numberB)sum of the factorial of individual digits in the numberC)reverse of a numberD)the same number is printed |
| Answer» | |