Skip to content

Commit

Permalink
Create 10039_평균점수.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
witheunjin committed Mar 15, 2020
1 parent 65fef2b commit e6b81d1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions BaekJoon/10039_평균점수.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <iostream>
using namespace std;

int main() {
int sum = 0;
for(int i=0; i<5; ++i) {
int score=0;
cin >> score;
if(score < 40) score = 40;
sum += score;
}
int avg = sum/5;
cout << avg;
return 0;
}

0 comments on commit e6b81d1

Please sign in to comment.