Computer Science, asked by harikrish24, 6 months ago

What is the purpose of the given program? n is the input number given by
the user.

#include <stdio.h>
int main()
{
int n, x = 0, y:
printf("Enter an integer: ");
scanf("%d", &n);
while (n !=0)
{
y=n% 10;
x= x= y
n = n/10;
printf("Output is = %d", x);
return 0;
}

a) Sum of the digits of a number
b) Sum of the factorial of individual digits in a number
c) Reverse of a number.
d) The same number is printed​

Answers

Answered by farhaniftekhar183
0

Answer:

I don't know the answer sorry

Answered by rohithkumar1021
0

Answer:

option C

reverse number is the correct answer

Similar questions