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
Write a function that will take in a phone number and output all possible alphabetical combinations
What is an auto keyword in c?
What is a pragma?
What are the modifiers available in c programming language?
Explain modulus operator. What are the restrictions of a modulus operator?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is meant by gets in c?
What is the use of linkage in c language?
Who invented bcpl language?
Is main an identifier in c?
What are the complete rules for header file searching?
Write a program that accept anumber in words
How is actual parameter different from the formal parameter?
Can math operations be performed on a void pointer?
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.