Quiz+5-6

Quiz 5-6:

Write a program that would allow the robot to Spin around (Point Turn) for ever, or until the battery dies when the the touch sensor (TOUCH3) is hit.

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