Network & Server Factory

개인 공부 기록

Algorithm/CodeUp

[codeup] 1127 : 성적 계산

1nfra 2020. 5. 3. 00:48
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
 
int main()
{
    int a, b, c;
    float one, two,three,i;
    scanf("%f %d", &one, &a);
    scanf("%f %d", &two, &b);
    scanf("%f %d", &three, &c);
 
    i = (a * one) + (b * two) + (c * three);
    printf("%.1f", i);
}
cs
728x90
서울
--:--:--
-전체 글
-카테고리
오늘 방문