back to Command Reference
[All Models]
Returns the value of pi.
PI
S = 2 * PI * R
10 INPUT "RADIUS"; R
20 PRINT "CIRCUMFERENCE="; 2*PI*R
30 PRINT "AREA="; R^2*PI
40 END
Calculates circumference and area of circle after input of radius.