in reply to Basic Times Table excercise
Let me suggest a few additional improvements.
You say you want numbers from 1 to 10, but compute numbers from 0 to 10. Use 1 + int rand 10.
At the start of your script, use:
use strict; use warnings;
use <> rather than <STDIN>.
use while (1) { rather than for(;;){.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Basic Times Table excercise
by jibberjabber (Novice) on Feb 17, 2016 at 12:03 UTC |