write a program to display reverse of a number using for
loop?
Answer Posted / rajesh.k
int main()
{
int num, i;
printf("Enter the number :\n");
scanf("%d",&num);
printf("The reverse number is :\n");
for(i = num;i >= 0; i--) {
printf("%d",i);
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 20 Yes | 21 No |
Post New Answer View All Answers
Differentiate between the = symbol and == symbol?
Can we compile a program without main() function?
Explain data types & how many data types supported by c?
Difference between macros and inline functions? Can a function be forced as inline?
what is the structure pointer?
Define recursion in c.
Should I learn c before c++?
What is static and auto variables in c?
How are pointers declared in c?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What is the general form of a C program?
What are register variables? What are the advantage of using register variables?
Are the variables argc and argv are always local to main?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
What is void pointers in c?