#define LIGHT 40 task main() { SetSensor(SENSOR_1,SENSOR_LIGHT); SetSensor(SENSOR_3,SENSOR_LIGHT); SetPower(OUT_A+OUT_C,2); while(true) { if (SENSOR_1 >= LIGHT) { OnFwd(OUT_C); } else { Off(OUT_C); } if (SENSOR_3 >= LIGHT) { OnFwd(OUT_A); } else { Off(OUT_A); } } }