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


Please Help Members By Posting Answers For Below Questions

Explain how can I manipulate strings of multibyte characters?

784


Without Computer networks, Computers will be half the use. Comment.

1877


Is there a way to compare two structure variables?

617


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1859


Why is it usually a bad idea to use gets()? Suggest a workaround.

907






What are lookup tables in c?

550


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

648


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

647


What does sizeof return c?

607


why wipro wase

1831


What is an array? What the different types of arrays in c?

660


What is c variable?

554


What is variable declaration and definition in c?

503


Explain how can I read and write comma-delimited text?

660


What are the differences between new and malloc in C?

610