Logo (informatica): differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Recupero di 1 fonte/i e segnalazione di 0 link interrotto/i.) #IABot (v2.0.8 |
→Disegno del triangolo: sostituita procedura troppo particolare |
||
Riga 99:
REPEAT 3 [LT 120 FD 50] (sintassi abbreviata)
'''- [[Triangolo rettangolo]]''' con
(versione LOGO in inglese)
make "cateto2 130
RIGHT 120▼
make "ipotenusa sqrt :cateto1*:cateto1+:cateto2*:cateto2
FORWARD 150▼
make "angolo1 arctan :cateto1/:cateto2
RIGHT 150▼
make "angolo2 90-:angolo1
FORWARD 130 oppure▼
FORWARD :cateto1
right 180-90
FD
RT
FD
RT
FD
rt 180-90 (sintassi abbreviata) == Proposte didattiche ==
|