Computer Science, asked by MrAddyAngel, 10 months ago

(C++ Program)
Write a Program which Prints a Two-digit Number in Reverse Order :- ​

Answers

Answered by Anonymous
2

Answer -

C program to find reverse of a number

int main() { int n, r = 0;

printf("Enter a number to reverse\n"); scanf("%d", &n);

while (n != 0) { r = r * 10; r = r + n%10; n = n/10; }

printf("Reverse of the number = %d\n", r);

→ Hope it will help you ❣️❣️

→ Please mark as Breinliest ❤️❤️

Similar questions