style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-5085498185887835"
data-ad-slot="2755800105">

Welcom visit Ros Dul

Thursday, December 21, 2017

Total average score

#include
using namespace std;
int main(){
    int khmer, math, english, average;
    cout<<"Input Khmer score:"; cin>>khmer;
    cout<<"Input Math score:"; cin>>math;
    cout<<"Input English score:"; cin>>english;
    average=(khmer+math+english)/3;
    cout<<"score of average: "; cout<    if(average>=90)
        cout<<"A";
    else if(average>80)
        cout<<"B";
     else if(average>70)
        cout<<"C";
     else if(average>60)
        cout<<"D";
     else if(average>50)
    {
        cout<<"E";
    }else if(average<=50)
    cout<<"F";
   
    return 0;
}



No comments:

Post a Comment