编写shell脚本,要求输入一个数字,然后计算出从1到输入数字的和,要求,如果输入的数字小于1,则重新输入,直到输入正确的数字为止; #! /bin/bashn=0while [ $n -lt "1" ]; doread -p "Please input a number, it must greater than "1":" ndonesum=0for i in `seq 1 $n`
源程序 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApp4{class Program{static void Main(string[] args){int[] a = n
源程序 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApp4{class Program{static void Main(string[] args){int[] a = n