小编Par*_*ati的帖子

我没有得到数字的立方体

while [ "$c" = y -o "$c" = Y -o -z $c ]
do
  echo enter a number;
  read n;
    if [ $n -ge 0 -a $n -le 50 ];then
      echo "cube= `expr $n * $n * $n`";
    fi;
  echo y to continue  or any to exit;
  read c;
done
Run Code Online (Sandbox Code Playgroud)

shell files

2
推荐指数
1
解决办法
569
查看次数

标签 统计

files ×1

shell ×1