folder Tahribat.com Forumları
linefolder C - C++
linefolder C İle İlqili Yardım



C İle İlqili Yardım

  1. KısayolKısayol reportŞikayet pmÖzel Mesaj
    aLman
    aLman's avatar
    Banlanmış Üye
    Kayıt Tarihi: 02/Aralık/2007
    Erkek

    <!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:162; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520092929 1073786111 9 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin-top:0cm; margin-right:0cm; margin-bottom:10.0pt; margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:Calibri; mso-fareast-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 70.85pt 70.85pt 70.85pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->

    Bir sınıftaki öğrencilerin bir dersten almış oldukları notların ortalamasını aşağıdaki tabloya göre harflere dönüştüren bir algoritmayı c dilinde

    switch case kullanarak yapabilirmisiniz arkadaslar . else if ve if ile cok basit yaptım ama switch case kullanamadım

     

    <!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:162; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520092929 1073786111 9 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin-top:0cm; margin-right:0cm; margin-bottom:10.0pt; margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:Calibri; mso-fareast-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 70.85pt 70.85pt 70.85pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->

    <!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:162; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520092929 1073786111 9 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin-top:0cm; margin-right:0cm; margin-bottom:10.0pt; margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:Calibri; mso-fareast-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 70.85pt 70.85pt 70.85pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->

    Notlar

    Harfler

    90-100

    AA

    85-89

    BA

    80-84

    BB

    75-79

    CB

    70-74

    CC

    65-69

    DC

    50-64

    DD

    00-49

    FF

     

  2. KısayolKısayol reportŞikayet pmÖzel Mesaj
    Ayro
    Ayro's avatar
    Kayıt Tarihi: 08/Ağustos/2005
    Erkek

    acelem var hepsini yapmadım çünkü hammallık ama şöyle olcak ;

    #include <stdio.h>

     

    main(){

        int not;

     

        do{

            printf("Lütfen notunuzu girin (0-100)");

            scanf("%d",&not);

        }while(not > 100 || not < 0);

     

        switch(not){

            case 100:

            case 99:

            case 98:

            case 97:

            case 96:

            case 95:

            case 94:

            case 93:

            case 92:

            case 91:

            case 90: printf("AA");

                    break;

            case 89:

            case 88:

            case 87:

            case 86:

            case 85: printf("BA");

                    break;

            case 84:

            case 83:

            case 82:

            case 81:

            case 80: printf("BB");

                    break;

        }

    }

Toplam Hit: 987 Toplam Mesaj: 2