to find out the reverse digit of a given number

Answer Posted / vaibhav

#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 ?    23 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the rules for identifiers in c?

685


Do you know what are bitwise shift operators in c programming?

693


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1706


What is an endless loop?

922


Explain what is meant by 'bit masking'?

734






how to make a scientific calculater ?

1666


Explain what is the difference between a string and an array?

743


Where are local variables stored in c?

661


What is null pointer in c?

676


If null and 0 are equivalent as null pointer constants, which should I use?

680


What are types of preprocessor in c?

716


Which is best book for data structures in c?

692


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

708


Who developed c language and when?

698


Explain heap and queue.

677