Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: rose1975 on August 14, 2019, 09:00:22 am

Title: Ask help: how to code as this instruction? Thx.
Post by: rose1975 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 :)
Title: Re: Ask help: how to code as this instruction? Thx.
Post by: BlueHazzard on August 14, 2019, 09:13:46 am
This is not a forum to help for your homework...