[Solve] Ask the user to enter a number for red, green, and blue components of an RGB value, which takes a

Ask the user to enter a number for red, green, and blue components of an RGB value, which takes a certain amount of red, green, and blue colors and produces a new color. Test the numbers that are input by the user and check that each value is between 0 and 255 (inclusive). If a color’s value is outside of this range, print which color’s number is not correct (e. g., “Red number is not correct” if the red value is 300). Multiple colors may be out of range. The order of the colors should be the same as the sample runs below; red, then green, then blue.

Please let us know your comments regarding the correct answer to the question. Each of your comments will be evaluated by us and correct comments will be shared.

Leave a Reply

Your email address will not be published. Required fields are marked *