RosettaCodeData/Task/User-input-Text/Smalltalk/user-input-text.st

6 lines
109 B
Smalltalk

'Enter a number: ' display.
a := stdin nextLine asInteger.
'Enter a string: ' display.
b := stdin nextLine.