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 / mohit

#include<stdio.h>
#include<conio.h>
main()
{
long int num,x=0;
int b;
while(n>0)
{
b=num%10;
num=num/10;
x=x*10+b;
}
printf("new number=%ld",x);
getch();
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How old is c programming language?

1002


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

3580


What do you mean by a local block?

1084


Explain how are 16- and 32-bit numbers stored?

1264


Why isnt there a numbered, multi-level break statement to break out

1042


Explain what is the stack?

1097


write a program to display all prime numbers

1959


Explain how can I convert a number to a string?

1150


What is bss in c?

1093


write a c program for swapping two strings using pointer

2624


What are the different types of linkage exist in c?

1028


provide an example of the Group by clause, when would you use this clause

2188


What does malloc () calloc () realloc () free () do?

1060


How variables are declared in c?

1036


What are called c variables?

1054