to find out the reverse digit of a given number
Answer Posted / vishnu
#include<stdio.h>
#include<conio.h>
void main()
{
int r,num,sum=0;
clrscr();
printf("Enter any Digit \n");
scanf("%d", &num);
while(num!=0)
{
r=num%10;
sum=sum*10+r;
num=num/10;
}
printf("Reverse Digit of a given number = %d",sum);
getch();
}
Is This Answer Correct ? | 66 Yes | 26 No |
Post New Answer View All Answers
What are the advantages of c preprocessor?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
can anyone suggest some site name..where i can get some good data structure puzzles???
What is an example of structure?
Differentiate between a structure and a union.
What are conditional operators in C?
C language questions for civil engineering
What is floating point constants?
How does #define work?
What is an expression?
Explain modulus operator.
What is the role of this pointer?
How can I implement sets or arrays of bits?
What is #include cctype?
How will you write a code for accessing the length of an array without assigning it to another variable?