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

#include <stdio.h>
int main(void) {
int num[4], i;
printf("Enter the number :
");
printf("The reverse number is :
");
for(i = 4;i >= 0; i--) {
printf("%d",i);
printf("
");
}
return 0;
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the importance of c in your views?

1094


What are the types of functions in c?

934


Explain what is the use of a semicolon (;) at the end of every program statement?

1184


Which is better between malloc and calloc?

1120


What is the use of a conditional inclusion statement in C?

1009


Can we assign string to char pointer?

1042


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

1034


What is meant by int main ()?

1155


What is the difference between array_name and &array_name?

1240


How will you write a code for accessing the length of an array without assigning it to another variable?

1001


how we can make 3d venturing graphics on outer interface

4731


Why is c called a mid-level programming language?

1153


What are the header files used in c language?

995


Why use int main instead of void main?

1072


how to construct a simulator keeping the logical boolean gates in c

2198