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 / narendra

It is simple.use this and it works

#include <stdio.h>
#include <conio.h>

int main()
{
int rem,num;
clrscr();
printf("Enter the number\n");
scanf("%d",&num);
for (num= num; num > 0; num = num/10)
{

rem = num % 10;
printf("%d",rem);

}
return 0;
}

Is This Answer Correct ?    14 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you print only part of a string?

1013


Who is the founder of c language?

1160


How can I handle floating-point exceptions gracefully?

1169


How can you be sure that a program follows the ANSI C standard?

1597


Do string constants represent numerical values?

1386


What does void main return?

1115


What is cohesion in c?

972


What does a function declared as pascal do differently?

1118


Difference between linking and loading?

1094


What is #line?

1046


How can this be legal c?

1082


Explain the difference between ++u and u++?

1128


How can a number be converted to a string?

1319


find out largest elemant of diagonalmatrix

2242


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1907