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

Is it possible to execute code even after the program exits the main() function?

1392


How are pointers declared in c?

1112


Why we use void main in c?

1229


How do I determine whether a character is numeric, alphabetic, and so on?

1182


What are the advantages and disadvantages of c language?

1070


What is 1d array in c?

1156


What is the purpose of 'register' keyword?

1131


What are different storage class specifiers in c?

1136


How can you increase the allowable number of simultaneously open files?

1210


What is calloc malloc realloc in c?

1106


Write the syntax and purpose of a switch statement in C.

1150


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3439


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1944


What is the c language function prototype?

1140


Explain Basic concepts of C language?

1233