BilgisayarKavramlari / Programlamaya-Giris

Her Dil için Programlamaya Giriş Antreman Soruları ve Çözümleri
517 stars 899 forks source link

HarfNotu #687

Closed oguzhantanriver closed 3 years ago

oguzhantanriver commented 3 years ago

import java.util.Scanner;

public class main { public static Scanner gir = new Scanner(System.in);

public static void main(String[] args) {
    System.out.println("Notunuzu giriniz: ");
    int Not = gir.nextInt();
    if (Not >= 90) {
        System.out.println("Harf Notunuz: A");
    } else if (Not >= 80 && Not <= 89) {
        System.out.println("Harf Notunuz: B");
    } else if (Not >= 70 && Not <= 79) {
        System.out.println("Harf Notunuz: C");
    } else System.out.println("Harf Notunuz: F");
}

}