U E D R , A S I H C RSS

프로그래밍잔치/Small Talk

Hello World

Object subclass: #HelloWorld
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'HelloWorld'

printHello
	Transcript show: 'Hello World'.

hello := HelloWorld new.
hello printHello.

구구단

~cpp 
Object subclass: #GuGuDan
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'GuGuDan

~cpp 
printGuGu
	2 to: 9 do:
	[
		:i | Transcript cr; show: i asString, 'dan'.

		1 to: 9 do:
		[
			:j | Transcript cr; show: i asString, ' * ', j asString, ' = ', (i*j) asString.
		].
	].

~cpp 
gugu := GuGuDan new.
gugu printGuGu.
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:31:26
Processing time 0.0090 sec