Write 3 short program segments that input Num, then display Yes if Num == 1, display No

Question:

Write 3 short program segments that input Num, then display "Yes" if Num == 1, display "No" if Num == 2, and display "Maybe" if Num == 3. Implement this program segment by:

(a) A sequence of If-Then statements

(b) Nested If-Then-Else statements

(c) A Case statement

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: