!/bin/bash
echo Enter the num
read n
for i in { 1..10 }
do
m=$(( n*i ))
echo "$i * $n" = $m
done
我得到了错误
for: 8: Illegal number: { 请提出解决方案
!/bin/bash
echo Enter the num
read n
for i in { 1..10 }
do
m=$(( n*i ))
echo "$i * $n" = $m
done
我得到了错误
for: 8: Illegal number: { 请提出解决方案