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


Please Help Members By Posting Answers For Below Questions

What is #include in c?

600


How can I manipulate individual bits?

608


Explain union. What are its advantages?

617


Why can't I perform arithmetic on a void* pointer?

639


What is the use of a semicolon (;) at the end of every program statement?

774






Is null valid for pointers to functions?

613


what is use of malloc and calloc?

1384


Give basis knowledge of web designing ...

1574


Implement bit Array in C.

676


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2983


What are qualifiers and modifiers c?

549


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

665


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

2242


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

759


What is non linear data structure in c?

577