NALLAMUTHU GOUNDER MAHALINGAM COLLEGE
POLLACHI-642001
R.Rasigapriya
Bsc Computer Science(Ist Year)
9.Traffic signal
#include <iostream>
int main()
{
for(int
i=1;i<=30;i++)
{
std::cout<<i<<"\n";
std::cout<<"STOP"<<std::endl;
}
for(int i=1; i<=40; i++)
{
std::cout<<i<<"\n";
std::cout<<"READY"<<std::endl;
}
for(int i=1; i<=70; i++)
{
std::cout<<i<<"\n";
std::cout<<"GO"<<std::endl;
}
return 0;
}
OUTPUT: