i want to make a program in which we use input having four
digits(4321) and get output its reciprocal(1234).
Answer / 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 |
What is the purpose of void in c?
ATM machine and railway reservation class/object diagram
What is the use of typedef in c?
What is quick sort in c?
What is unary operator?
What is bash c?
Diff: between this 2 classes in terms of memory class A { int i; char c; double d; }; class A { double d; int i; char c; }; How it is calculating?
What is spark map function?
What are header files and explain what are its uses in c programming?
can u give me the good and very optimised code for a car racing game?
How can type-insensitive macros be created?
Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.