0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VBAで恋人占いやってみた

Last updated at Posted at 2020-07-28
Sub uncode()
'変数宣言
    Dim GF As Boolean   '彼女の有無
    GF = False
    
    Dim Age, year As Integer    '年齢、年号
    Age = 0
    year = 1

Do Until year = Age  '彼女ができる日
    If year = Age Then
        GF = True
    End If
       MsgBox "令和" & year & "年" _
              & vbCrLf & Age & "歳" & "\(^o^)/"
      Age = Age + 1
      year = year + 1
Loop

MsgBox "おめでとう(ノ゜∇゜)ノ"

End Sub
0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?