write a program to display reverse of a number using for
loop?
Answer Posted / rockin pro
Answer
# 9 #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;
}
Thanks for Marking this A
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are header files in c programming?
What does a pointer variable always consist of?
Where is c used?
What happens if header file is included twice?
Why ca not I do something like this?
In c language can we compile a program without main() function?
When is a “switch” statement preferable over an “if” statement?
What is the purpose of sprintf?
How is actual parameter different from the formal parameter?
How do we declare variables in c?
Why is extern used in c?
What is a MAC Address?
What is the purpose of main() function?
Why can't I perform arithmetic on a void* pointer?
Where static variables are stored in c?