in reply to SIMPLE way to write these?
..Use a loop to write all numbers between 1 and 10.. Using the C for loop like you did, included 1 and 10. I thought the question says numbers BETWEEN?
If they are included, well and good but if not, you might have to write for (my $j = 2; $j < 10; $j++){...} OR better print $_,$/ for 2 .. 9
|
|---|