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

i want to make a program in which we use input having four
digits(4321) and get output its reciprocal(1234).

Answer Posted / fcuker

#include <stdio.h>

int main() {
int x;
scanf("%d", &x);
while (x > 0) {
printf("%d", x % 10);
x = x / 10;
}
return 0;
}

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a function that will take in a phone number and output all possible alphabetical combinations

998


What is an auto keyword in c?

1045


What is a pragma?

1078


What are the modifiers available in c programming language?

1174


Explain modulus operator. What are the restrictions of a modulus operator?

970


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2345


What is meant by gets in c?

1103


What is the use of linkage in c language?

1011


Who invented bcpl language?

1118


Is main an identifier in c?

1087


What are the complete rules for header file searching?

1030


Write a program that accept anumber in words

1711


How is actual parameter different from the formal parameter?

973


Can math operations be performed on a void pointer?

970


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

1356