Write a program segment that inputs a number X and does all of the following: a. Displays

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 X > 0

b. Displays "Error: Division by zero", if X = 0

c. Displays "Error: Square root of negative number", if X < 0

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: