Study/code up

[codeup] 1120 : 세 수의 평균

1nfra 2020. 5. 1. 20:57
728x90
1
2
3
4
5
6
7
8
9
#include <stdio.h>
 
int main() {
    float a, b, c;
    scanf("%f %f %f", &a, &b, &c);
    float(i) = (a+b+c) / 3;
    printf("%.2f", i);
}
 
Colored by Color Scripter
cs
728x90
저작자표시 비영리 동일조건 (새창열림)