Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int c, t;
- cin >> t;
- c = t % 6;
- if (c < 3) {
- cout << "GREEN" ;
- } else if (c == 3) {
- cout << "YELLOW" ;
- } else {
- cout << "RED" ;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement