Linux操作系统清考考试求解决

2025-03-10 03:49:26
推荐回答(2个)
回答1:

#!/bin/bash
echo -e "Please Input a number:"
read input
a=0
for (( i=0; i<= input ; ++i)); do
((a=a+i));
done
echo "The Total is : "$a

回答2:

软件学院的? 太好了 同求同求 。。。 就是没有大神发 源文件。。。。 直接了当做好就好了