(1 mark, file to be edited: Q1.c)
The program asks the user to enter two integers a and b from the keyboard.
Print the result of the calculation: 1/a + 1/b, with 2 digits after the decimal point.
Below is an example of how the program will run:
Enter the values: a = 3, b = 7
2 of 2
Paper No: 8
37
OUTPUT:
0.48
Press any key to continue
Question 2:
(1 mark, file to be edited: Q2.c)
Close
+ 100%
Zoom