Algorithm/goorm
goorm 3과 5의 배수, 시험성적 평균과 등급 구하기, 홀짝 판별
#include #include using namespace std; string fun(int n) { if (n % 2 == 0) { return "even"; } else { return "odd"; } } int main(void) { int n; cin >> n; cout > n; int sum = 0; // 3과 5의 배수의 합 int ex = 0; // 15의 배수의 합 for(int i = 0; i > math >> eng; double avg = (kor + math + eng)/3.0; cout