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

hi good morning folks... happy sunday.......

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


thank u

Is This Answer Correct ?    31 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the disadvantages of external storage class?

1007


What is d scanf?

1029


What is the difference between union and anonymous union?

1251


What happens if you free a pointer twice?

1029


How do I copy files?

1003


Is c weakly typed?

972


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

4242


What does c mean in standard form?

1108


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6731


Why is c faster?

1018


What are reserved words with a programming language?

1058


What are the uses of a pointer?

1103


What is graph in c?

1010


How can I recover the file name given an open stream?

950


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3851