write a program to display reverse of a number using for
loop?
Answer Posted / rakesh ranjan
#include<conio.h>
#include<stdio.h>
main()
{
int x,n,i;
printf("entre the number");
scanf("%d",&n);
for(;n>0;)
{
x=n%10;
printf("%d",x);
n/=10;
}
getch();
}
| Is This Answer Correct ? | 15 Yes | 9 No |
Post New Answer View All Answers
What is actual argument?
What is static and auto variables in c?
Tell us something about keyword 'auto'.
What is action and transformation in spark?
What is the size of enum in c?
Explain what are multidimensional arrays?
Which is best linux os?
Explain the ternary tree?
What is c programming structure?
Using which language Test cases are added in .ptu file of RTRT unit testing???
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
How to get string length of given string in c?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
How do I swap bytes?