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
I need testPalindrome and removeSpace
#include
What are the advantages of the functions?
What is a global variable in c?
what are the different storage classes in c?
Explain two-dimensional array.
How do you write a program which produces its own source code as output?
Tell me what is the purpose of 'register' keyword in c language?
Explain the meaning of keyword 'extern' in a function declaration.
How can you determine the maximum value that a numeric variable can hold?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What is bash c?
#include
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
What are the advantages of using new operator as compared to the function malloc ()?
When should you not use a type cast?