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
What is the difference between c &c++?
What is register variable in c language?
What is the difference between local variable and global variable in c?
Differentiate between a structure and a union.
What are the three constants used in c?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What is the hardest programming language?
can anyone please tell about the nested interrupts?
What does it mean when the linker says that _end is undefined?
What is difference between constant pointer and constant variable?
What is the use of getchar functions?
Which is best linux os?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Explain the use of 'auto' keyword
When should I declare a function?