Skip to content

Commit

Permalink
hello
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravkhatrishots committed Mar 2, 2018
0 parents commit b07ba32
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions hello.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#include<stdio.h>
void main()
{
int temp,i;

printf("enter the number");
scanf("%d",&i);

temp=i;


while(1)
{

printf("%d",temp%10);
temp=temp/10;
if(temp%10!=temp)
{
printf("%d",temp%10);
temp=temp/10;

break;}


}











}

0 comments on commit b07ba32

Please sign in to comment.