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
What are the disadvantages of external storage class?
What is d scanf?
What is the difference between union and anonymous union?
What happens if you free a pointer twice?
How do I copy files?
Is c weakly typed?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What does c mean in standard form?
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)
Why is c faster?
What are reserved words with a programming language?
What are the uses of a pointer?
What is graph in c?
How can I recover the file name given an open stream?
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