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 would happen to X in this expression: X += 15; (assuming the value of X is 5)
What does calloc stand for?
Difference between constant pointer and pointer to a constant.
void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case
How can I get the current date or time of day in a c program?
What tq means in chat?
Read two numbers from keyboard and find maximum of them?
What is an example of enumeration?
How to set file pointer to beginning c?
What is static memory allocation? Explain
What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }
Can we change the value of static variable in c?