Skip to content

Instantly share code, notes, and snippets.

@programmingfaster0226
Created January 18, 2018 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save programmingfaster0226/d46dcfb72c57f038d0ee1bff66424e87 to your computer and use it in GitHub Desktop.
Save programmingfaster0226/d46dcfb72c57f038d0ee1bff66424e87 to your computer and use it in GitHub Desktop.
kumar
#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