Question: Write a program segment that inputs a number X and does all of the following: a. Displays the reciprocal of its square root, 1/Sqrt(X), if
Write a program segment that inputs a number X and does all of the following:
a. Displays the reciprocal of its square root, 1/Sqrt(X), if X > 0
b. Displays "Error: Division by zero", if X = 0
c. Displays "Error: Square root of negative number", if X < 0
Step by Step Solution
3.39 Rating (161 Votes )
There are 3 Steps involved in it
a b c Write This program will display the square root of the reciprocal of ... View full answer
Get step-by-step solutions from verified subject matter experts
