to find out the reverse digit of a given number
Answer Posted / srinath, hyd
#include<stdio.h>
#include<conio.h>
void main()
{
int no, t;
clrscr();
printf("\nenter the no.");
scanf("%d",&no);
while(no!=0)
{
t=no%10;
no=no/10;
printf("%d",t);
}
getch();
}
| Is This Answer Correct ? | 10 Yes | 11 No |
Post New Answer View All Answers
How many main () function we can have in a project?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
int i=10; printf("%d %d %d", i, i=20, i);
Which is better oop or procedural?
What is the use of in c?
What is the use of ?: Operator?
How #define works?
Explain what is the purpose of "extern" keyword in a function declaration?
How will you divide two numbers in a MACRO?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
What are the types of type specifiers?
In which language linux is written?
Explain what is the most efficient way to store flag values?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference