simple c program for 12345 convert 54321 with out using string
Answer Posted / sharan
#include<stdio.h>
//#include<conio.h>
void main()
{
int n,m;
printf("enter the number :");
scanf("%d",&n);
while (n)
{
m=n%10;
n=n/10;
printf("%d",m);
}
printf("\n");
}
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
What is the purpose of 'register' keyword?
Explain about the functions strcat() and strcmp()?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
Write a code to generate a series where the next element is the sum of last k terms.
What is the difference between Printf(..) and sprint(...) ?
What are runtime error?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What is linear search?
How pointers are declared?
How would you rename a function in C?
What happens if header file is included twice?
What is d'n in c?
What is #line used for?
What does struct node * mean?
Describe explain how arrays can be passed to a user defined function