#!/bin/bash
num=1
for i in {1..100}
do
let "num=$num+$i"
done
echo $num
打印1-100的和
猜你喜欢
转载自blog.51cto.com/15077398/2587135
今日推荐
周排行