How to print an integer to transcript

Viewed 6782

I've tried the code

|myNum|
myNum := SmallInteger new: 0.
Transcript show: (myNum printString).

, but Pharo crashes upon running this code.

2 Answers
Related