Created
April 12, 2016 22:11
-
-
Save anonymous/5f972e6cd73e63004ad5086e7e37235f to your computer and use it in GitHub Desktop.
çifttek
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
Scanner input = new Scanner(System.in); | |
System.out.println("Lütfen bir sayı giriniz"); | |
int number = input.nextInt(); | |
if (number % 2 == 0) { | |
System.out.println("Girmiş olduğunuz sayı çifttir."); | |
} else if (number % 2 == 1) { | |
System.out.println("Girmiş olduğunuz sayı tektir."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment