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

How can I invoke another program or command and trap its output?

1049


What is the significance of scope resolution operator?

1349


How will you find a duplicate number in a array without negating the nos ?

2085


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3459


What the different types of arrays in c?

1025


What is openmp in c?

972


How to find a missed value, if you want to store 100 values in a 99 sized array?

1366


What is the easiest sorting method to use?

1100


What is spark map function?

1060


Can you write the function prototype, definition and mention the other requirements.

1086


Is c still used?

1000


What is the use of static variable in c?

1046


how to capitalise first letter of each word in a given string?

1875


Explain union. What are its advantages?

1010


What is actual argument?

1005