Program to reverse a number in C Post author:admin Post published:July 30, 2018 Post category:C Programms Post comments:0 Comments #include<stdio.h> #include<conio.h> void main() { int long a,n,rev=0; clrscr(); printf(“enter any number”); scanf(“%lld”,&n); while(n>0) { a=n%10; rev=rev*10+a; n=n/10; } printf(“%lld”,rev); getch(); } Output: Tags: program to reverse a number, reverse a number in c You Might Also Like Program to add individual digits of a number July 30, 2018 Prime Number Program In C July 30, 2018 Table of Any Number in C July 30, 2018 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.