Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

develop algorithms to add polynomials (i) in one variable

2166


What are header files? What are their uses?

1210


Which one would you prefer - a macro or a function?

1082


How can I split up a string into whitespace-separated fields?

1055


is it possible to create your own header files?

1105


What is the argument of a function in c?

1052


What does %c do in c?

990


Explain what are the __date__ and __time__ preprocessor commands?

1118


What is an lvalue in c?

1124


What is calloc in c?

1139


What is indirection? How many levels of pointers can you have?

1130


How many types of arrays are there in c?

1045


Can we change the value of static variable in c?

1031


Is c compiled or interpreted?

1192


How can I open files mentioned on the command line, and parse option flags?

1070