Write a program to reverse the given number.
#include<stdio.h>
#include<conio.h>
void main()
{
int n,r;
clrscr();
printf (“enter the number”);
scanf(“%d”,&n);
while(n!=0)
{
r=n%10;
printf(“%d”,r);
n =n/10;
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int n,r;
clrscr();
printf (“enter the number”);
scanf(“%d”,&n);
while(n!=0)
{
r=n%10;
printf(“%d”,r);
n =n/10;
}
getch();
}
I love learning and I love people and you’re a person and you’re here to learn. Hopefully, you can see where I’m going with this.
0 Comments
Have any query? Want any type of module?
Please comment it down and let me know.