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
What is the equivalent code of the following statement in WHILE LOOP format?
What is the value of h?
How can I manipulate strings of multibyte characters?
What is a pointer in c plus plus?
What does 3 periods mean in texting?
What is structure and union in c?
What will the preprocessor do for a program?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What does 2n 4c mean?
What is meant by initialization and how we initialize a variable?
What is bss in c?
What is difference between structure and union?
What is getche() function?
What are the uses of a pointer?
What are the types of unary operators?