how to find out the reverse number of a digit if it is
input through the keyboard?

Answer Posted / prince rafi

void main()
{
int num,m,temp=0;
clrscr();
printf("enter the value of num);
do
{
m=m%10;
temp=(temp*10)+m;
num=num/10;
}
while(num>0);
printf("%d",sum);
}
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a Program to find whether the given number or string is palindrome.

742


Why is c so popular?

763


What is I ++ in c programming?

707


What are header files in c programming?

744


Why array is used in c?

655






What are the functions to open and close the file in c language?

679


Explain how do you override a defined macro?

676


How are variables declared in c?

703


how to write optimum code to divide a 50 digit number with a 25 digit number??

2849


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

760


I need previous papers of CSC.......plz help out by posting them.......

1923


What does main () mean in c?

723


Why c is called a mid level programming language?

695


Why does this code crash?

704


what type of questions arrive in interview over c programming?

1648