代码演示
1 | import java.util.Scanner;//import java.util.Scanner;import java.util.Scanner;import java.util.Scanner;import java.util.Scanner; |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
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+" ");
}
}
}
}
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
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+" ");
}
}
}
}
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
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+" ");
}
}
}
}
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
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+" ");
}
}
}
}