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 the purpose of 'register' keyword?

1057


Explain about the functions strcat() and strcmp()?

1004


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

1995


Write a code to generate a series where the next element is the sum of last k terms.

1186


What is the difference between Printf(..) and sprint(...) ?

1457


What are runtime error?

1094


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1135


What is linear search?

1093


How pointers are declared?

921


How would you rename a function in C?

1008


What happens if header file is included twice?

1103


What is d'n in c?

1080


What is #line used for?

996


What does struct node * mean?

982


Describe explain how arrays can be passed to a user defined function

1061