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 a pragma?
write a program to rearrange the array such way that all even elements should come first and next come odd
What is the difference between a string and an array?
What tq means in chat?
What is the default value of local and global variables in c?
What is the difference between a function and a method in c?
What is the use of extern in c?
What are the various types of control structures in programming?
How to throw some light on the b tree?
Why malloc is faster than calloc?
Explain the difference between call by value and call by reference in c language?
Is it valid to address one element beyond the end of an array?
What's the total generic pointer type?
How can I read in an object file and jump to locations in it?
Why do we use static in c?