Everything2
Near Matches
Ignore Exact
Full Text
Everything2

multiplication table in Perl

created by ariels

(thing) by ariels (1.4 d) (print)   ?   (I like it!) 1 C! Thu Jan 11 2001 at 10:47:55

Simple, snappy, short:
#!/usr/local/bin/perl -w
use strict;
for$-(1..9){printf'%3d',$_*$-for 1..9;print$/}

Much easier than memorising your multiplication tables, no?

-w and strict optional, of course.


printable version
chaos

use strict .. C vs. Perl Perl
$_ Multiplication tables Multiple precision arithmetic #!
3816547290 strict one liner printf
Trivial Montgomery multiplication Napier's Bones Bavaria
Multiplication Optional memorize 1
for
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Drink up!
The Resistible Rise of Arturo Ui
Some Ethical Issues With The Use Of Robot Combatants
Old Bailey
What I learned from the skateboarders outside my window
"""""'""
Everything2 as a discussion forum
The Second Coming of Christ already happened
public sector
ice cream and psilocybin
Grand Rapidians - Part One
The Getty Center
People Power
homonym
New Writeups
XWiz
Trism(review)
artman2003
Briefcase Full of Souls - Part I(fiction)
Dreamvirus
Alan Ladd(person)
waverider37
Harold Holt(person)
The Debutante
Until death do us part(fiction)
Ysardo
a brother to a sister(personal)
antigravpussy
your warm whispers(personal)
Clarke
Multiculturalism(idea)
aneurin
Earl of Landaff(person)
Heitah
Pseudocide(idea)
XWiz
Google Knol(lede)
Mythi
July 24, 2008(personal)
locke baron
The fall of Earth(fiction)
BookReader
Fear the Cold(dream)
Pavlovna
Kathleen MacInnes(person)
Everything 2 is brought to you by the letter C and The Everything Development Company