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 / rakesh ranjan

#include<conio.h>
#include<stdio.h>
main()
{
int x,n,i;
printf("entre the number");
scanf("%d",&n);
for(;n>0;)
{
x=n%10;
printf("%d",x);
n/=10;
}
getch();
}

Is This Answer Correct ?    15 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between declaring a variable and defining a variable?

1209


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

995


List a few unconditional control statement in c.

940


What is New modifiers?

1080


Give basis knowledge of web designing ...

1989


What is the correct code to have following output in c using nested for loop?

1040


How can I write a function that takes a format string and a variable number of arguments?

1008


When should you not use a type cast?

1080


write a program to create a sparse matrix using dynamic memory allocation.

4857


Write a program to reverse a string.

1043


What is the auto keyword good for?

1086


Explain c preprocessor?

1060


Find MAXIMUM of three distinct integers using a single C statement

1023


What is ambagious result in C? explain with an example.

2566


What is the use of getchar() function?

1089