解题思路:
注意事项:
参考代码:
Scanner sc =new Scanner(System.in);
int min = sc.nextInt();
int max = sc.nextInt();
int factor = sc.nextInt();
for(int i=min;i<=max;i++){
if(i%factor==0){
System.out.print(i+" ");
}
}
0.0分
0 人评分
C语言训练-自由落体问题 (C语言代码)浏览:1738 |
【简单计算】 (C语言代码)浏览:622 |
三角形 (C++代码)递推浏览:760 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:327 |
A+B for Input-Output Practice (VI) (C语言代码)浏览:558 |
杨辉三角 (C语言代码)浏览:484 |
C语言程序设计教程(第三版)课后习题11.3 (C语言代码)浏览:577 |
前10名 (C语言代码)浏览:727 |
简单的a+b (C语言代码)浏览:464 |
1052题解(链表操作)浏览:674 |