标签:int() public 16px image style 输出 bsp lock 约数
目录
具体代码如下:
import java.util.Scanner; public class Main { public static void main(String[] args) { int count = 0; Scanner in = new Scanner(System.in); int n = in.nextInt(); for(int i = 1;i <= n;i++) { if(n % i == 0) count++; } System.out.println(count); } }
标签:int() public 16px image style 输出 bsp lock 约数
原文地址:http://www.cnblogs.com/liuzhen1995/p/6785508.html