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 the importance of c in your views?
What are the types of functions in c?
Explain what is the use of a semicolon (;) at the end of every program statement?
Which is better between malloc and calloc?
What is the use of a conditional inclusion statement in C?
Can we assign string to char pointer?
Which one would you prefer - a macro or a function?
What is meant by int main ()?
What is the difference between array_name and &array_name?
How will you write a code for accessing the length of an array without assigning it to another variable?
how we can make 3d venturing graphics on outer interface
Why is c called a mid-level programming language?
What are the header files used in c language?
Why use int main instead of void main?
how to construct a simulator keeping the logical boolean gates in c