Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

simple c program for 12345 convert 54321 with out using string

Answer Posted / sharan

#include<stdio.h>
//#include<conio.h>
void main()
{
int n,m;
printf("enter the number :");
scanf("%d",&n);
while (n)
{
m=n%10;
n=n/10;
printf("%d",m);
}
printf("\n");
}

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a pragma?

1124


write a program to rearrange the array such way that all even elements should come first and next come odd

2275


What is the difference between a string and an array?

1201


What tq means in chat?

1122


What is the default value of local and global variables in c?

1039


What is the difference between a function and a method in c?

1080


What is the use of extern in c?

1092


What are the various types of control structures in programming?

1058


How to throw some light on the b tree?

1083


Why malloc is faster than calloc?

1062


Explain the difference between call by value and call by reference in c language?

1113


Is it valid to address one element beyond the end of an array?

1172


What's the total generic pointer type?

1052


How can I read in an object file and jump to locations in it?

1027


Why do we use static in c?

1123