解题思路:
注意事项:
参考代码:
import java.util.*;
public class Main {
public static void main(String [] args){
Scanner sc=new Scanner(System.in);
int []a=new int[9] ;
for(int i=0;i<9;i++){
a[i]=sc.nextInt();
}int t=sc.nextInt();
for(int i=0;i<9;i++){
System.out.println(a[i]);
if(a[i]<t&&a[i+1]>t){
System.out.println(t);
}
}
}
}
0.0分
0 人评分
输出正反三角形 (C语言代码)格式错误!!!浏览:1149 |
WU-陶陶摘苹果2 (C++代码)浏览:978 |
C语言程序设计教程(第三版)课后习题6.2 (C语言代码)浏览:694 |
淘淘的名单 (C语言代码)浏览:1231 |
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:624 |
C语言程序设计教程(第三版)课后习题11.5 (C语言代码)浏览:1249 |
C语言程序设计教程(第三版)课后习题7.5 (C语言代码)浏览:720 |
删除数组中的0元素 (C语言代码)浏览:2063 |
素数的个数 一直是超时浏览:672 |
C语言程序设计教程(第三版)课后习题1.6 (C语言代码)浏览:670 |