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
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
What is the significance of an algorithm to C programming?
What is the benefit of using an enum rather than a #define constant?
What is the difference between void main and main in c?
What does 3 mean in texting?
What is indirection in c?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
what is the significance of static storage class specifier?
What is the purpose of scanf() and printf() functions?
What's a good way to check for "close enough" floating-point equality?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What is a ternary operator in c?
c language interview questions & answer
What is binary tree in c?
Explain what is meant by 'bit masking'?