Program to reverse of a number

No comments

/*Program to reverse of a number*/


#include<stdio.h>
#include<conio.h>
void main()
{
int s=0,r,n;
clrscr();
printf("Enter any number:");
scanf("%d",&n);
while(n>0)
{
r=n%10;
n=n/10;
s=s*10+r;
}
printf("The reverse of the number is=%d",s);
getch();
}


OutPut :-




No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀