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 / vikas kumar from agra

#include<stdio.h>
#include<conio.h>
void main()
{
long int num,i;
int d;
clrscr();
printf("\n enter number");
scanf("%ld",&n);
printf("\n the reverse of number %ld is ",num);
for(i=0;i>0;i=i\10)
{
d=i%10;
printf("%d",d);
}
getch();
}

Is This Answer Correct ?    39 Yes 83 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is %s and %d in c?

1035


What is difference between stdio h and conio h?

1367


What is the process of writing the null pointer?

1026


How can you allocate arrays or structures bigger than 64K?

1132


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

3825


What is structure of c program?

1157


Why doesnt that code work?

1169


How does #define work?

1063


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1234


Write a C program in Fibonacci series.

1084


Without Computer networks, Computers will be half the use. Comment.

2296


What is scanf_s in c?

1114


What are the 3 types of structures?

1026


What are integer variable, floating-point variable and character variable?

1243


When would you use a pointer to a function?

1042