Quiz+5-7

Quiz 5-7:

Write a program that would make the robot go forward until the touch sensor is hit, and then it will Spin around (Point Turn) forever. Yes it is similar to 5-6 :)

task main { while(SensorValue(TOUCH3) == 0) { motor[motorB]=50; wait motor[motorC]=50; } while(1) { //motor[motorB]=50;// motor[motorC]=-50; } ﻿}