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...

write a program to display reverse of a number using for
loop?

Answer Posted / rajesh.k

int main()
{
int num, i;
printf("Enter the number :\n");
scanf("%d",&num);
printf("The reverse number is :\n");
for(i = num;i >= 0; i--) {
printf("%d",i);
printf("\n");
}
getch();
}

Is This Answer Correct ?    20 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Subtract Two Number Without Using Subtraction Operator

778


Why doesnt this code work?

1004


What is getch () for?

1142


What is call by reference in functions?

1316


Which of these functions is safer to use : fgets(), gets()? Why?

1042


What is difference between %d and %i in c?

1179


Why flag is used in c?

1065


write a program to display all prime numbers

1909


How can I sort more data than will fit in memory?

1038


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

972


I have a varargs function which accepts a float parameter?

994


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2073


Is it possible to have a function as a parameter in another function?

1034


What are the different types of control structures?

983


What is the use of c language in real life?

972