Write a program to define three variables to hold three testscores. The program should ask the user to enter three test scoresand then assign the values entered to the variables. The programshould display the average of the test scores and the letter gradethat is assigned for the test score average. Use the grading schemein the following table.Test ScoreAverage Letter Grade90 orgreater A80-89 B70-79 C60-69 DBelow60 F
Answer: #include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c,avg;
char ch;
cout<<\"\\n enter values of 3 test scores\";
cin>>a>>b>>c;
avg=(a+b+c)/3;
cout<<\"\\n average is \"<<avg;
if(avg<60)
ch=\'F\';
if(avg>=60 && avg<=69)
ch=\'D\';
if(avg>=70 && avg<=79)
ch=\'C\';
if(avg>=80 && avg<=89)
ch=\'B\';
if(avg>=90)
ch=\'A\';
cout<<\"\\n grade is:\"<<ch;
}
짤이 거지같은데 코드가독성도 거지같아서 못보겠어
니코드가 거지같은게 아니라 디씨 텍스트 깨지는거때문에
ㄴ 으잉ㅠㅠ 그래? 어찌해야되지ㅠ
http://pastebin.com
글고 문제 부분도 양식이 깨져서..
ㄴ
http://pastebin.com/v8gcBNxk
여기! 이렇게 하면 되는거야??
시발 디시야 html 먹히게 해달라
언제까지 저렇게 거지같이 링크걸어야해
그니까ㅠㅠ 디게 복잡하네