language: Smalltalk (gst 3.1)
date: 144 days 8 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Transcript show: 'welcome to smalltalk programming'.
Transcript cr; show: 5 sin printString.
Transcript cr; show: 4 factorial printString.
Transcript cr; show: Date today printString.
Transcript cr; show: (5 > 1)not printString.
Transcript cr; show: (5 < 1)not printString.
|a b c|
a:=2.
b:=1.
c:=3.
(a>b)ifTrue:[
(b>c)ifTrue:[Transcript cr; show:'a is greater than b and c'].
(b>c)ifFalse:[Transcript cr; show:'c is greater than a and b']].
(a>b)ifFalse:[Transcript cr; show:'b is greater than a and b']