added multiplication_table function to .bash_functions
This commit is contained in:
parent
6922ddea9f
commit
5dc24c088c
1 changed files with 8 additions and 0 deletions
|
@ -162,3 +162,11 @@ on()
|
|||
fi
|
||||
|
||||
}
|
||||
|
||||
multiplication_table()
|
||||
|
||||
{
|
||||
for y in {1..10}; do
|
||||
for x in {1..10}; do echo -n "| $x*$y=$((y*x)) ";
|
||||
done; echo; done| column -t
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue