Computer Science, asked by Camrynhumphreys, 1 year ago

I need serious help!!!

Ask the user to enter a number for red, green and blue components of an RGB value. Test to make sure each value is between 0 and 255 inclusive. If a color's value is out of range, print which component is not correct (e.g. "Red number is not correct" if the red value is 300). Multiple colors may be out of range.

Example 1:

Enter the red: 150
Enter the green: 300
Enter the blue: 15
Outputs:

Green number is not correct.
Example 2:

Enter the red: 25
Enter the green: 124
Enter the blue: 105
Outputs:

No Output

Answers

Answered by rupaliyewale74
4

Answer:

I don't understand this question

Similar questions