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
develop algorithms to add polynomials (i) in one variable
What are header files? What are their uses?
Which one would you prefer - a macro or a function?
How can I split up a string into whitespace-separated fields?
is it possible to create your own header files?
What is the argument of a function in c?
What does %c do in c?
Explain what are the __date__ and __time__ preprocessor commands?
What is an lvalue in c?
What is calloc in c?
What is indirection? How many levels of pointers can you have?
How many types of arrays are there in c?
Can we change the value of static variable in c?
Is c compiled or interpreted?
How can I open files mentioned on the command line, and parse option flags?