Quiz+5-1

Quiz 5-1:

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

 int L;

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