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


Please Help Members By Posting Answers For Below Questions

What is pointer to pointer in c?

626


What is the difference between ā€˜gā€™ and ā€œgā€ in C?

2493


What is a pointer value and address in c?

621


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1670


What is static memory allocation? Explain

625






What is the difference between break and continue?

598


What are the usage of pointer in c?

697


Can include files be nested? How many levels deep can include files be nested?

649


Explain main function in c?

616


how to make a scientific calculater ?

1552


Do you have any idea about the use of "auto" keyword?

656


Explain what is the difference between functions getch() and getche()?

597


what value is returned to operating system after program execution?

1592


What is pass by value in c?

591


What is I ++ in c programming?

613