C program to reverse a number in c #include<stdio.h> #include<conio.h> void main() { int n,r ; clrscr(); Printf(“ enter the any number for reverse ”); Scanf(“ %d ”, &n); While(n!=0) { R= n%10; Printf(“%d”,r); N=n/10; } getch(); }
No comments:
Post a Comment
for more information please share like comment and subscribe