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 |
Explain what header files do I need in order to define the standard library functions I use?
Write a C program to find the smallest of three integers, without using any of the comparision operators.
Why is c platform dependent?
What is the easiest sorting method to use?
Do you know what are bitwise shift operators in c programming?
What does the format %10.2 mean when included in a printf statement?
How can my program discover the complete pathname to the executable from which it was invoked?
write a C code To reverse a linked list
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Write a program to print all the prime numbers with in the given range
8 Answers ABC, College School Exams Tests, TCS,
By using C language input a date into it and if it is right?
How variables are declared in c?