From e6b81d1d977ff6f54fd72a008d0629048c3c1b91 Mon Sep 17 00:00:00 2001 From: EunJin Lee <50702052+witheunjin@users.noreply.github.com> Date: Mon, 16 Mar 2020 00:21:31 +0900 Subject: [PATCH] =?UTF-8?q?Create=2010039=5F=ED=8F=89=EA=B7=A0=EC=A0=90?= =?UTF-8?q?=EC=88=98.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...7\211\352\267\240\354\240\220\354\210\230.cpp" | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 "BaekJoon/10039_\355\217\211\352\267\240\354\240\220\354\210\230.cpp" diff --git "a/BaekJoon/10039_\355\217\211\352\267\240\354\240\220\354\210\230.cpp" "b/BaekJoon/10039_\355\217\211\352\267\240\354\240\220\354\210\230.cpp" new file mode 100644 index 0000000..1387bc5 --- /dev/null +++ "b/BaekJoon/10039_\355\217\211\352\267\240\354\240\220\354\210\230.cpp" @@ -0,0 +1,15 @@ +#include +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; +} \ No newline at end of file