GitHub Viewer
package basic;
/**
* Created by zxc on 2018/3/23.
*/
public class ArithmeticOne {
public static void main(String[] args) {
//int num = countWord("Please follow the Wechat public number");
//isUgly(30);
//System.out.println("关注公众号:Java3y--->" + "Please follow the Wechat public number");
//Factorial(3);
Factorial(7);
}
/**
* 判断一个数字是不是ugly number(分解出来的质因数只有2、3、5这3个数字)
*
* @param num
*/
public static void isUgly(int num) {
if (num