Skip to content

Instantly share code, notes, and snippets.

Created April 12, 2016 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5f972e6cd73e63004ad5086e7e37235f to your computer and use it in GitHub Desktop.
Save anonymous/5f972e6cd73e63004ad5086e7e37235f to your computer and use it in GitHub Desktop.
çifttek
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