摘要: 题目:Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive inte... 阅读全文
posted @ 2015-10-21 11:43 savageclc26 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 题目:Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. For ex... 阅读全文
posted @ 2015-10-21 10:12 savageclc26 阅读(152) 评论(0) 推荐(0) 编辑