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 |
how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n");
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
What does malloc () calloc () realloc () free () do?
what are the advantages of a macro over a function?
Can you apply link and association interchangeably?
What is declaration and definition in c?
ratio,age,persentage
Explain how do you declare an array that will hold more than 64kb of data?
Can we declare a function inside a function in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
2 Answers Aricent, Manipal University,
write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,25,26,27};