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 do graphics in c?

1043


please explain every phase in the "SDLC" in the dotnet.

2633


In a switch statement, explain what will happen if a break statement is omitted?

1084


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2823


What is a nested formula?

1170


What are the back slash character constants or escape sequence charactersavailable in c?

1188


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2214


what is different between auto and local static? why should we use local static?

1131


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3098


What is function what are the types of function?

1007


What is difference between stdio h and conio h?

1394


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2171


how to execute a program using if else condition and the output should enter number and the number is odd only...

2315


What is the difference between array and pointer in c?

1176


What is linear search?

1146