Computer Science, asked by aryanyadav41, 8 months ago

Q6. Write a program to take a number of five digits and print its reverse
Example: Input 56789
Output
98765​

Answers

Answered by nitishyumnam3338
1

Answer:

{

int n=56789, reverse = 0;

reverse= reverse*10;

reverse= reverse + n%10;

n=n/10;

printf ("Reversed number = %d",reverse);

return 0;

}

Similar questions