Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6. int c, t;
  7. cin >> t;
  8. c = t % 6;
  9. if (c < 3) {
  10. cout << "GREEN" ;
  11. } else if (c == 3) {
  12. cout << "YELLOW" ;
  13. } else {
  14. cout << "RED" ;
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement