Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (temp_c >= 1200)
- {
- Colour = "White";
- }
- if (temp_c >= 1100 && temp_c < 1200)
- {
- Colour = "Light Yellow";
- }
- if (temp_c >= 1050 && temp_c < 1100)
- {
- Colour = "Yellow";
- }
- if (temp_c >= 980 && temp_c < 1050)
- {
- Colour = "Light Orange";
- }
- if (temp_c >= 930 && temp_c < 980)
- {
- Colour = "Orange";
- }
- if (temp_c >= 870 && temp_c < 930)
- {
- Colour = "Light Red";
- }
- if (temp_c >= 810 && temp_c < 870)
- {
- Colour = "Light Cherry";
- }
- if (temp_c >= 760 && temp_c < 810)
- {
- Colour = "Cherry";
- }
- if (temp_c >= 700 && temp_c < 760)
- {
- Colour = "Dark Cherry";
- }
- if (temp_c >= 650 && temp_c < 700)
- {
- Colour = "Blood Red";
- }
- if (temp_c >= 600 && temp_c < 650)
- {
- Colour = "Brown Red";
- }
- if (temp_c < 600)
- {
- Colour = "--";
- }
Add Comment
Please, Sign In to add comment