URI ONLINE JUDGE :: 2344 - Notas da Prova Solution in C++

URI Online Judge | 2344

Notas da Prova

 problem details:https://www.urionlinejudge.com.br/judge/en/problems/view/2344


Solution In C++;

#include <bits/stdc++.h>
using namespace std;

int main(){

   int n;
   cin>>n;
  if(n==0) cout<<"E"<<endl;
  else if(n>=1 && n<=35) cout<<"D"<<endl;
  else if(n>=36 && n<=60) cout<<"C"<<endl;
  else if(n>=61 && n<=85) cout<<"B"<<endl;
  else if(n>=86 && n<=100) cout<<"A"<<endl;

    return 0;
}

Comments

Post a Comment

Thanks for your message