-
-
Save programmingfaster0226/d46dcfb72c57f038d0ee1bff66424e87 to your computer and use it in GitHub Desktop.
kumar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
void main() | |
{ | |
long int num,rev=0; | |
int digit ; | |
printf("enter the number"); | |
scanf("%d",&num); | |
while(num!=0) | |
{ | |
digit=num%10; | |
rev=rev*10 + digit; | |
num=num /10; | |
} | |
printf("the reverse no is %d",rev); | |
getch(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment