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
Is it possible to execute code even after the program exits the main() function?
How are pointers declared in c?
Why we use void main in c?
How do I determine whether a character is numeric, alphabetic, and so on?
What are the advantages and disadvantages of c language?
What is 1d array in c?
What is the purpose of 'register' keyword?
What are different storage class specifiers in c?
How can you increase the allowable number of simultaneously open files?
What is calloc malloc realloc in c?
Write the syntax and purpose of a switch statement in C.
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is the c language function prototype?
Explain Basic concepts of C language?