Quiz+4-13

Quiz 4-13:

Write a program that would read a sonic sensor (SONIC3) and continually display the distance on the robots screen.

int L;

task main { while(1) { L = SensorValue(SONIC3); nxtDisplayCenteredBigTextLine(3,"%d",L); } }