Computer Science, asked by bharatkumar551999, 9 months ago

What is the purpose of the given program? n is the input number given by the user.
#include
int 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 number
B)sum of the factorial of individual digits in the number
C)reverse of a number
D)the same number is printed

Answers

Answered by aditya9818
2

Answer:

reverse of the no is printed ezy

Answered by sswamyhm
2

Answer:

the purpose of the given program is to reverse of the number

Similar questions