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


Please Help Members By Posting Answers For Below Questions

Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1620


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

1419


How can I list all of the predefined identifiers?

581


What are pointers? Why are they used?

632


What is the full form of getch?

585






how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1372


What is static memory allocation? Explain

632


What is type qualifiers?

663


What are the features of c language?

621


What are the preprocessor categories?

639


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

666


What does p mean in physics?

585


What is a pragma?

670


How many keywords are there in c?

591


What is pointer to pointer in c with example?

549