一、单行 If 语句
If x > 10 Then MsgBox "x is greater than 10"二、多行 If...Then...End If 语句
If x > 10 ThenMsgBox "x is greater than 10"y x 5
End If 三、If...Then...Else 语句
If condition Then 当条件为真时执行的代码块stateme…
大纲 题目地址内容 解题代码地址 题目
地址
https://leetcode.com/problems/happy-number/description/
内容
Write an algorithm to determine if a number n is happy.
A happy number is a number defined by the following process:
Starting with any positive inte…