Q6. Write a program to take a number of five digits and print its reverse
Example: Input 56789
Output
98765
Answers
Answered by
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
Math,
4 months ago
Accountancy,
4 months ago
Hindi,
8 months ago
English,
8 months ago
Math,
11 months ago
Math,
11 months ago
Accountancy,
11 months ago