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 Null And Void Pointer?

1228


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2725


Explain how are portions of a program disabled in demo versions?

1105


What is volatile, register definition in C

1089


What are header files? What are their uses?

1190


What is your stream meaning?

1208


When is the “void” keyword used in a function?

1484


can we change the default calling convention in c if yes than how.........?

2521


How would you obtain the current time and difference between two times?

1280


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1243


write a program to find out prime number using sieve case?

2077


Write a program on swapping (100, 50)

1097


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1625


What does the characters “r” and “w” mean when writing programs that will make use of files?

1462


Why c language?

1040