write a program to display reverse of a number using for
loop?
Answer Posted / radhika
#include <stdio.h>
int main(void) {
int num[4], i;
printf("Enter the number :
");
printf("The reverse number is :
");
for(i = 4;i >= 0; i--) {
printf("%d",i);
printf("
");
}
return 0;
}
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is pointer to pointer in c?
What is the difference between āgā and āgā in C?
What is a pointer value and address in c?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
What is static memory allocation? Explain
What is the difference between break and continue?
What are the usage of pointer in c?
Can include files be nested? How many levels deep can include files be nested?
Explain main function in c?
how to make a scientific calculater ?
Do you have any idea about the use of "auto" keyword?
Explain what is the difference between functions getch() and getche()?
what value is returned to operating system after program execution?
What is pass by value in c?
What is I ++ in c programming?