write a program to display reverse of a number using for
loop?
Answer Posted / rajesh.k
int main()
{
int num, i;
printf("Enter the number :\n");
scanf("%d",&num);
printf("The reverse number is :\n");
for(i = num;i >= 0; i--) {
printf("%d",i);
printf("\n");
}
getch();
}
Is This Answer Correct ? | 20 Yes | 21 No |
Post New Answer View All Answers
What is a constant and types of constants in c?
How do I determine whether a character is numeric, alphabetic, and so on?
What is the difference between the = symbol and == symbol?
how is the examination pattern?
Why is sizeof () an operator and not a function?
What are the disadvantages of external storage class?
What are the features of c languages?
What is the purpose of clrscr () printf () and getch ()?
What are the different types of data structures in c?
How a string is stored in c?
Explain c preprocessor?
How do you write a program which produces its own source code as output?
Why static variable is used in c?
Why does everyone say not to use scanf? What should I use instead?
Explain Function Pointer?