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...

convert 12345 to 54321 withoutusing strig

Answer Posted / satrughna sethi

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
printf("enter a number");
scanf("%d",&i);
for(int n=1;n<=5;n++)
{
j=i%10;
i=i/10;
printf("%d",j);
}
getch();
}

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between c &c++?

1158


What is register variable in c language?

1031


What is the difference between local variable and global variable in c?

1237


Differentiate between a structure and a union.

1292


What are the three constants used in c?

997


How to find a missed value, if you want to store 100 values in a 99 sized array?

1415


What is the hardest programming language?

1158


can anyone please tell about the nested interrupts?

2125


What does it mean when the linker says that _end is undefined?

1099


What is difference between constant pointer and constant variable?

1322


What is the use of getchar functions?

1185


Which is best linux os?

1028


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3690


Explain the use of 'auto' keyword

1125


When should I declare a function?

1138