Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Add 5 to a number

by runrig (Abbot)
on Jul 01, 2016 at 22:23 UTC ( #1167029=note: print w/replies, xml ) Need Help??


in reply to Add 5 to a number

Why not just multiply by 5:
for my $i (0..10) { my $n = $i*5; print "$n\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1167029]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2019-06-24 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (97 votes). Check out past polls.

    Notices?