Author Topic: Ask help: how to code as this instruction? Thx.  (Read 2472 times)

Offline rose1975

  • Single posting newcomer
  • *
  • Posts: 3
Ask help: how to code as this instruction? Thx.
« on: August 14, 2019, 09:00:22 am »
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 :)

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Ask help: how to code as this instruction? Thx.
« Reply #1 on: August 14, 2019, 09:13:46 am »
This is not a forum to help for your homework...