Advertisement
gunawantw

Tahun Kabisat

May 26th, 2019
1,062
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.30 KB | None | 0 0
  1. #include <Constants.au3>
  2.  
  3. $applName = "Menghitung Tahun Kabisat"
  4. $x = InputBox($applName, "Masukan Tahun ",6)
  5.  
  6. $y = Mod(Int($x),4)
  7.  
  8. if ($y=0) Then
  9.     MsgBox($MB_SYSTEMMODAL, $applName, $x & " adalah Tahun Kabisat!")
  10. Else
  11.     MsgBox($MB_SYSTEMMODAL, $applName, $x & " adalah BUKAN Tahun Kabisat!")
  12. EndIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement