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

What are the storage classes in C?

616


What is new line escape sequence?

797


What is pointer in c?

731


What is the heap in c?

635


Which is the memory area not included in C program? give the reason

1495






Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

742


How can you tell whether a program was compiled using c versus c++?

613


What do header files do?

595


How can this be legal c?

644


Is c pass by value or reference?

587


Explain what are run-time errors?

601


Do you know what are the properties of union in c?

574


What is a macro in c preprocessor?

616


How can I discover how many arguments a function was actually called with?

627


What is oops c?

598