Computer Science, asked by jappanmehta22410001, 8 months ago

write an program to print reverse number of given number in C programming.

Answers

Answered by banerjeericky7061
1

Answer:

C program to reverse a number

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

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

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

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

Answered by Hɾιтհιĸ
10

hope this attachment helps you

Attachments:
Similar questions