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
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
0
Solution is there, in the attachment!!
Attachments:
Similar questions
Hindi,
1 month ago
Computer Science,
1 month ago
English,
3 months ago
English,
3 months ago
Chemistry,
10 months ago