标签:
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); int c=sc.nextInt(); for(int i=n;i<=m;i++){ if(i%c==0) System.out.print(i+" "); } System.out.println(); } }
标签:
原文地址:http://www.cnblogs.com/watchfree/p/5346947.html