无脑循环打印。
import java.util.Scanner; public class Main { public static void main(String[] args) { int min, max, factor; Scanner x = new Scanner(System.in); min = x.nextInt(); max = x.nextInt(); factor = x.nextInt(); for (int i = min; i <= max; i += 1) { if (i % factor == 0) { System.out.print(i + " "); } } } }
0.0分
0 人评分
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码)浏览:591 |
数列排序 (C语言代码)浏览:835 |
十->二进制转换 (C语言代码)浏览:1291 |
C语言程序设计教程(第三版)课后习题10.4 (C语言代码)浏览:675 |
C语言程序设计教程(第三版)课后习题8.2 (C语言代码)浏览:5232 |
a+b浏览:433 |
C语言程序设计教程(第三版)课后习题10.5 (C语言代码)浏览:545 |
交换Easy (C语言代码)浏览:761 |
A+B for Input-Output Practice (I) (C语言代码)浏览:431 |
筛排处理 (C语言代码)浏览:786 |