28 lines
328 B
Bash
Executable File
28 lines
328 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ $# -lt 2 ]]
|
|
then
|
|
echo "Usage: $0 <mumarg1> <numarg2>"
|
|
exit
|
|
fi
|
|
|
|
if [[ $1 -gt $2 ]]
|
|
then
|
|
echo "Tu dois donne un 1er paramètre moins gros que celui de le deuxieme paramètre"
|
|
exit
|
|
fi
|
|
|
|
ARG=$1
|
|
ARG2=$2
|
|
|
|
for ((i=ARG; i<=ARG2;i++))
|
|
do
|
|
for((j=ARG; j<=ARG2;j++))
|
|
do
|
|
echo -n $((i*j))" "
|
|
done
|
|
|
|
echo ""
|
|
done
|
|
exit
|