Question: It makes sense to have an if-expression in a programming language. a) Does it make sense to have a while-expression; that is, can a while-expression

It makes sense to have an if-expression in a programming language.

a) Does it make sense to have a while-expression; that is, can a while-expression return a value, and if so, what value?

b) Does it make sense to have a case or switch expression; that is, can a case-expression return a value, and if so, what value?

c) Does it make sense to have a do-or repeat expression; that is, can a do-expression return a value, and if so, what value?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!