write a program, When the racer is outside the covered section:
The audible warning must turn ON and OFF with the rear Light.
• When the racer is inside the covered section:
The audible warning must stay ON.
#include<stdio.h>
int main()
{
int i;
for(i = 0; i < 1000;i++)
{
printf("The two headlights are ON and the rear light is OFF\n");
Sleep(1);
printf("\a");
printf("The two headlights are OFF and the rear light is ON\n");
}
return 0;
}
Comments
Leave a comment