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...

to find out the reverse digit of a given number

Answer Posted / jet lee

#include<stdio.h>

int rev(int y);
int main()
{
int x;
printf("\n please enter the number:\n");
scanf("%d",&x);
rev(x);
return 0;
}

int rev(int y)
{

int i;
do
{
i=(y%10);
printf("%d",i);
y=(y/10);
}while(y>0);
}

Is This Answer Correct ?    17 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 4 types of organizational structures?

1161


What is malloc and calloc?

1103


What is line in c preprocessor?

1099


What is the difference between local variable and global variable in c?

1285


What is the function of this pointer?

1452


Differentiate between calloc and malloc.

1317


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

1107


Is c# a good language?

1058


Write a program to know whether the input number is an armstrong number.

1169


What is a buffer in c?

1053


write a c program in such a way that if we enter the today date the output should be next day's date.

2239


Write program to remove duplicate in an array?

1131


What are local static variables?

1206


What functions are used for dynamic memory allocation in c language?

1211


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

2042