标签:ret int system ati 质数 sys java log public
public static void main(String[] args) { fun(100); } public static void fun(int num){ int i=2; if(num==i){ System.out.println(num); return; }else{ while(true){ if(num%i==0){ System.out.print(i+"*"); fun(num/i); return; }else{ i++; if(i==num){ System.out.println(num); return; } } } } }
标签:ret int system ati 质数 sys java log public
原文地址:http://www.cnblogs.com/2nao/p/6764473.html