Study/code up
[codeup] 1127 : 성적 계산
1nfra
2020. 5. 3. 00:48
728x90
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