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

int main()
{
int num;
int i;
int a[10];
printf("enter the number \n");
scanf("%d",&num);

for(i =0;num;i++)
{
a[i]=num %10;
num= num/10;
printf("%d",a[i]);
}

getch();
}

Is This Answer Correct ?    29 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by c what are the main characteristics of c language?

1037


List the difference between a While & Do While loops?

1113


Write a progarm to find the length of string using switch case?

2070


Write a program to print ASCII code for a given digit.

1101


Can we compile a program without main() function?

1132


What are the main characteristics of c language describe the structure of ac program?

1218


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1309


What are the 32 keywords in c?

1094


What is a pointer in c?

1584


Who developed c language?

1102


Explain what are run-time errors?

1099


What language is lisp written in?

1272


string reverse using recursion

2479


Describe the header file and its usage in c programming?

1073


What are types of functions?

1045