Computer Science, asked by mddanishmd007, 3 months ago

Write a program to print a given number in reverse order. For example if number I'd 7513, the output should be 3157.​

Answers

Answered by gangonepriyadarshini
0

Answer:

int main() {

int n=7513, reverse, rem;

while(n!=0)

{

rem=n%10;

reverse=10*reverse+rem;

n=n/10;

}

printf("%d", reverse) ;

return 0;

}

Answered by Anonymous
0

Solution is there, in the attachment!!

Attachments:
Similar questions