#include <iostream>
using namespace std;
int main ()
{
int R,G,Y;
int r,g,y;
int a;
cout<<"enter your input"<<endl;
cin>>a;
if (a==R||r)
{
cout<<"please stop"<<endl;
}
else
if (a==G||g)
{
cout<<"you can go"<<endl;
}
else if (a==Y||y)
{
cout<<"prepare to stop"<<endl;
}
else
cout<<"Out of range"<<endl;
return 0;
}
renovat0 0 Newbie Poster
wildgoose 420 Practically a Posting Shark
jesseb07 64 Junior Poster
Salem 5,199 Posting Sage
JameB 66 Junior Poster
renovat0 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.