[shell scripts] Tinh tổng S=1+2+3+...+n #!/bin/bash echo "nhap n tu ban phim: " read n s=0 for ((i=1; i<=$n; i++)) do let s=s+1 done echo "tong s= $s"
0 comments:
Post a Comment