Created
April 18, 2022 18:55
-
-
Save Furkan-Gulsen/3ef7bcf1a54f8dac04ce000055bd1733 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Giris; | |
import java.util.Scanner; | |
public class Baslangic { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
System.out.print("Yılı Giriniz: " ); | |
int yil=scanner.nextInt(); | |
if(yil%4==0) { | |
if(yil%100==0&&!(yil%400==0)) { | |
System.out.println(yil + " bir artık yil degildir !"); | |
} else { | |
System.out.println(yil + " bir artık yıldır !"); | |
} | |
} else { | |
System.out.println(yil+" bir artık yil degildir !"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment