Suppose x and y are variables of type double. Write a code fragment that sets y to

Question:

Suppose x and y are variables of type double. Write a code fragment that sets y to x if x is positive and to 0 otherwise.

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

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: