Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $tahun=$_POST["tahun"];
- if ($tahun=="")
- {
- echo "Mohon isi tahun di link <a href=tugas1.php> ini</a>";
- }
- else if ($tahun %4==0)
- {
- echo "Tahun tersebut adalah tahun kabisat";
- }
- else
- {
- echo "Tahun tersebut bukan tahun kabisat";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement