| 
 | 
back to boardWA 4 pls help Posted by  Herman 26 Jan 2017 12:44 #include <iostream> #include <cmath> using namespace std; int main() { int n,s=0; bool f=0; float t; cin>>n; int M[n]; for( int i=0;i<n;i++) {     cin>>M[i];      s+=M[i];      if(M[i]==3)      f=1; } t=s/float(n); if(s/n==5)       cout<<"Named";   else if(f==1 || t<4.5 )       cout<<"None";   else if(t>=4.5)       cout<<"High";   }   Re: WA 4 pls help Posted by  Herman 26 Jan 2017 13:49 Nothing about the "common" scholarship...  |  
  | 
|