Suppose salary and deductions are variables of type double


Question: Suppose salary and deductions are variables of type double that have been given values. Write an if-else statement that outputs the word "Crazy" if salary is less than deductions ; otherwise, it should output "OK" and set the variable net equal to salary minus deductions.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Suppose salary and deductions are variables of type double
Reference No:- TGS02404320

Now Priced at $15 (50% Discount)

Recommended (98%)

Rated (4.3/5)