import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { Scanner input = new Scanner(System.in); int min = input.nextInt(); int max = input.nextInt(); int factor = input.nextInt(); for (int i = min; i <=max; i++) { if (i%factor==0) { System.out.print(i+" "); } } } }
解题思路:
注意事项:
参考代码:
0.0分
0 人评分
【绝对值排序】 (C语言代码)浏览:717 |
简单的a+b (C++语言代码)浏览:860 |
P1001 (C语言代码)浏览:801 |
C语言训练-计算t=1+1/2+1/3+...+1/n (C语言代码)浏览:908 |
C语言考试练习题_一元二次方程 (C语言代码)浏览:576 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:811 |
A+B for Input-Output Practice (III) (C语言代码)浏览:569 |
剪刀石头布 (C语言代码)浏览:1436 |
整数平均值 (C语言代码)浏览:787 |
简单的a+b (C语言代码)浏览:512 |