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
What are the types of data structures in c?
Where local variables are stored in c?
what are bit fields? What is the use of bit fields in a structure declaration?
What is structure padding in c?
What do you mean by recursion in c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Why do we need volatile in c?
What are called c variables?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What is meant by errors and debugging?
Do you have any idea how to compare array with pointer in c?
What is && in c programming?
What math functions are available for integers? For floating point?
Why we not create function inside function.