Skip to content

Commit aa3abd7

Browse files
committed
reverse of a number c-basics
1 parent a54dd56 commit aa3abd7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

reverseofnumber.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include<stdio.h>
2+
void main()
3+
{
4+
int a,n;
5+
printf("enter the number");
6+
scanf("%d",&a);
7+
while(a>0)
8+
{
9+
n=a%10;
10+
printf("%d",n);
11+
a=a/10;
12+
}
13+
}

0 commit comments

Comments
 (0)