[ORNEK] C Programlama // switch case ile girilen notu harfe hesaplama geçtin kaldın

Konu

#1
Kod:
#include <stdio.h>

int main(){
    
    int not;
    printf("gir");
    scanf("%d",&not);
    switch(not/10){
        case 1:
        case 2:
        case 3:printf("kaldin Notun : dd");break;
        case 4:printf("kaldin Notun : dc");break;
        case 5:printf("Gectin Notun : cc");break;
        case 6:printf("Gectin Notun : cb");break;
        case 7:printf("Gectin Notun : bb");break;
        case 8:printf("Gectin Notun : ba");break;
        case 9:
        case 10:printf("Gectin Notun : AA");break;
        
        default:printf("Gecersiz not");    
    }
}

C# Unity Game Dev
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da
Kayıt Ol