Linux中编写程序,要用户输入整数k、m和n,k要大于1.并计算在m和n之间的所有能被k整除的整数之和

chufucun 1年前 已收到1个回答 举报

ycyty 幼苗

共回答了15个问题采纳率:100% 举报

#!/bin/bashread -p "please input the first number:" num1;read -p "please input the second number:" num2;read -p "please input the third number:" num3;k=${num1};m=${num2};n=${num3};sum=0while [ "$m" -l...

1年前

5
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 3.543 s. - webmaster@yulucn.com