User forums > Using Code::Blocks

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

(1/1)

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...

Navigation

[0] Message Index

Go to full version