2020年8月16日

100个Shell脚本——【脚本5】数字求和

摘要: 【脚本5】数字求和 编写shell脚本,要求输入一个数字,然后计算出从1到输入数字的和,要求,如果输入的数字小于1,则重新输入,直到输入正确的数字为止,示例: 一、脚本 #!/bin/bash while : do read -p "Please enter a positive integer: 阅读全文

posted @ 2020-08-16 23:31 渴望飞翔的xian鱼 阅读(1692) 评论(0) 推荐(0) 编辑

导航