News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Ask help: how to code as this instruction? Thx.

Started by rose1975, August 14, 2019, 09:00:22 AM

Previous topic - Next topic

rose1975

Hi
I met a question for this:

1.Follow the instructions to complete the following program segment.
enum Paint { red, blue, yellow, green, orange, purple };
Paint color = green;
// Write an if/else statement that will print out '' primary color''
// if color is red, blue, or yellow, and will print out
// '' mixed color'' otherwise. The if test should use a relational
// expression.

Thanks for help :)

BlueHazzard

This is not a forum to help for your homework...