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 are pointers? Why are they used?

1175


What is malloc return c?

1020


Write a program to find factorial of a number using recursive function.

1119


Why c is called a middle level language?

1105


What is pointer to pointer in c?

1104


How can I convert a number to a string?

1171


Define recursion in c.

1278


Differentiate between functions getch() and getche().

1047


What is LINKED LIST? How can you access the last element in a linked list?

1070


Can you apply link and association interchangeably?

1123


How do you determine a file’s attributes?

1078


What is structure of c program?

1157


What is the use of typedef in structure in c?

968


What is a newline escape sequence?

1098


Explain logical errors? Compare with syntax errors.

1071