Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "Comando de Seleção"
- 3=4 ifTrue: [x := 10].
- x=y ifTrue: [x := 8] ifFalse: [x := 9].
- x := x=y ifTrue: [8] ifFalse: [9].
- "Comando de Repetição"
- 1 to: 20 do: [:x| x printNl ] !
- 1 to: 20 by: 2 do: [:x| x printNl ] !
- 20 to: 1 by: -1 do: [:x| x printNl ] !
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement