Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int tahun;
- cout << "\t Menentukan Tahun Kabisat \n\n";
- cout << " Masukkan Tahun : ";
- cin >> tahun;
- if (tahun % 4 == 0 && tahun % 100 != 0 || tahun % 400 == 0)
- {
- cout << "\n Ini Tahun Kabisat";
- }
- else
- {
- cout << "\n Ini Bukan Tahun Kabisat";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment