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
Explain how can I manipulate strings of multibyte characters?
Without Computer networks, Computers will be half the use. Comment.
Is there a way to compare two structure variables?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Why is it usually a bad idea to use gets()? Suggest a workaround.
What are lookup tables in c?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What does sizeof return c?
why wipro wase
What is an array? What the different types of arrays in c?
What is c variable?
What is variable declaration and definition in c?
Explain how can I read and write comma-delimited text?
What are the differences between new and malloc in C?