Skip to content

Instantly share code, notes, and snippets.

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) {
package Giris;
import java.util.Scanner;
public class Baslangic {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Doğum Yılınızı Giriniz : ");
int yil = input.nextInt();
if (yil % 12 == 0 ) {
package Giris;
import java.util.Scanner;
public class Baslangic {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
int distance, age,selectType; double normalAmount;
System.out.print("Mesafeyi km türünden giriniz : ");
package Giris;
import java.util.Scanner;
public class Baslangic {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
byte month,day;
String zodiac = "undefined yet.";
System.out.print("Month of birthday: ");
package Giris;
import java.util.Scanner;
public class Baslangic {
public static void main(String[] args) {
int a, b, c;
Scanner input = new Scanner(System.in);
System.out.println("İlk sayi: ");
a = input.nextInt();
package Giris;
import java.util.Scanner;
public class Baslangic {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int sicaklik = scan.nextInt();
if(sicaklik < 5) {
System.out.println("Kayak");
package Giris;
import java.util.Scanner;
public class Baslangic {
private static int count = 0;
public static int dersNotu(String ders){
Scanner scan = new Scanner(System.in);
System.out.print(ders.toString() + " Notunuz: ");
int not = scan.nextInt();
package Giris;
import java.util.Scanner;
public class Baslangic {
public static void main(String[] args) {
String password = "123";
String input_password, isWannaChangePassword;
Scanner scan = new Scanner(System.in);
System.out.print("Parola: ");
package hesapMakinesi;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int a,b,select;
Scanner scan=new Scanner(System.in);
System.out.print("Input the first number please: ");
a=scan.nextInt();
System.out.print("Input the second number please:");
package Giris;
import java.util.Scanner;
public class Baslangic {
public static void main(String[] args) {
double armut=2.14,
elma=3.67,
domates=1.11,
muz=0.95,
patlican=5.0;