标签:
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 num=sc.nextInt(); for(int i=1;i<=num;i++){ if(num%i==0){ System.out.println(i+" * "+(num/i)+" = "+num); } } } }
标签:
原文地址:http://www.cnblogs.com/watchfree/p/5346944.html