import java.util.Scanner;
public class w
{
/**
* @param args
*/
public static void main(String[] args)
{
// TODO Auto-generated method stub
System.out.println("请输入一个数:");
Scanner input = new Scanner(System.in);
int num=input.nextInt();
int i=2;
System.out.println("The smallest factors are:");
while(num>=i)
{
if(num%i==0)
{
num/=i;
System.out.println(i);
}
else
i++;
}
}
}
4.16**
最新推荐文章于 2024-04-21 21:51:12 发布