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

HOW TO FIND OUT THE RREVERS OF A GIVEN DIGIT NUMBER IF IT
IS INPUT THROUGH THE KEYBORD BY USING C LANGUAGE

Answer Posted / audumbar

#include<stdio.h>
main()
{
int n;
printf("\n enter the number");
scanf("%d",&n);

while(n!=0)
{
int a=n%10;
printf("%d",a);
n=n/10;
}
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I convert a number to a string?

1099


What are the differences between Structures and Arrays?

1129


What tq means in chat?

1061


Is fortran still used in 2018?

985


What does nil mean in c?

1180


What is the purpose of main() function?

1183


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1015


What are the features of c language?

1021


What is sizeof in c?

954


Can you return null in c?

1093


Explain how do you declare an array that will hold more than 64kb of data?

1397


How can I read/write structures from/to data files?

922


Difference between macros and inline functions? Can a function be forced as inline?

1199


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2410


What are pointers really good for, anyway?

1012