皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
【程序填空】 --------------------------------------------------------- 定义一个长度为5的整形数组,要求从键盘为每个元素输入一个整数,然后输 出每个数组元素,再输出数组中的最大值和最小值。 @author: yangxj -------------------------------------------------------*/ package Prog1; import java.util.*; public class Prog1 { public static void main(String[] args) { int i,max,min; _______________ //定义一个整形数组a,包含5个元素,并为之分配空间。 Scanner reader = new Scanner(System.in); // 从键盘输入5个整数,并将其存入数组中。 for( i=0;____________;i++) { System.out.print(" 从键盘输入一个整数到元素a["+i+"]="); ____________________ } max=a[0]; min=a[0]; for(i=1;i<5;i++) { ______________________ //如果a[i]小于max,则把a[i]赋值给max ______________________ //如果a[i]大于min,则把a[i]赋值给min } System.out.println(" 最大的数是"+max); System.out.println(" 最小的数是"+min); } }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【判断题】施工工程的出入口,必须搭设坚固的防护板棚,棚的宽度要大于出入口,棚的长度应根据建筑物高度分别设置,一般以3~5m为宜。
A.
正确
B.
错误
【单选题】What is designer's mission?
A.
Temperament transmit.
B.
Make the owner have the sense of belonging .
C.
Choose the door and window.
D.
Arrangements the furniture and fabric decorations.
【判断题】王翰是山水田园诗人代表
A.
正确
B.
错误
【多选题】以下哪些属于油画棒的基本技法?
A.
平涂法
B.
叠置法
C.
刮除法
D.
点彩法
【单选题】王翰是唐代著名的( )。
A.
隐逸诗人
B.
田园诗人
C.
边塞诗人
D.
山水诗人
【单选题】What is Apple’s Mission Statement?
A.
There is an extraordinary breadth and depth and tenure among the Apple executive team, and these executives lead over 35,000 employees that I would call “all wicked smart".
B.
They recognize each person’s contribution to Apple’s success, and they share the financial rewards that flow from high performance.
C.
The attitudes and behaviors of managers toward their people are of primary importance.
D.
Teamwork is essential to Apple’s success, for the job is too big to be done by one person.
【单选题】摩尼教在中国哪一个城市留有遗迹:()
A.
泉州
B.
达州
C.
亳州
D.
荆州
【单选题】施工工程的出入口,必须搭设坚固的防护板棚,棚的宽度要大于出入口,棚的长度应根据建筑物高度分别设置,一般以()为宜。
A.
5~10m
B.
5~15m
C.
8~10m
D.
10~20m
【单选题】What is the band’s mission?
A.
to become famous outside of the DRC
B.
to encourage their audience
C.
to bring peace to their country
【单选题】十八届五中全会公报提出,“实行( )的环境保护制度”。
A.
最全面
B.
最经济
C.
最严格
D.
最有效
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题