Quiz+5-13

Quiz 5-13:

Write a program that would read a sonic sensor (SONIC) and continually display the distance on the robots screen. Please read the sensor into an integer variable "S" before you display it.

Thanks and have a very super Roboterrific Day :)

int S;

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