• Home
  • About
    • changsoooooo's Blog photo

      changsoooooo's Blog

      changsoooooo's Blog.

    • Learn More
    • Twitter
    • Facebook
    • Instagram
    • Github
    • Steam
  • 일상
  • 교육
    • 교육학
    • 정보 컴퓨터 교육
    • 임용
  • 개발
  • 잡지식
  • 한국사
  • Projects

9498(시험성적)

08 Nov 2020

Reading time ~1 minute

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
using namespace std;
int main(){
	ios::sync_with_stdio(0); 
	cin.tie(0);
	
	int score;
	cin >> score;
	if (score>=90)
	{
		cout << 'A';
	}
	else if (score>=80&&score<90)
	{
		cout << 'B';
	}
	else if (score>=70&&score<80)
	{
		cout << 'C';
	}
	else if (score>=60&&score<70)
	{
		cout << 'D';
	}
	else
	{
		cout << 'F';
	}
}


Share Tweet +1