write a program to take a number display the number reverse of that number.???
Answers
Answered by
1
Answer:
in which language.......xd
Explanation:
I'm going to tell u in c language
#include<studio.h>
#include<conio.h>
int main()
{int a,i,reverse=0,b;
printf("enter a number");
scanf("%d",&a);
/////// this loop is for finding the reverse
while(a>0)
{b=a%10;
reverse=reverse*10+b;
a=a/10;
}
printf("reverse is %d",reverse);
getch();
return0;
}
hope this will help u
Answered by
0
Answer:
python---
a=int(input("Enter the number"))
b=str(a)
print(b[::-1])
Similar questions