Advertisement
igovasconcelos

Untitled

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