-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype5.c
More file actions
46 lines (41 loc) · 943 Bytes
/
type5.c
File metadata and controls
46 lines (41 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include <stdio.h>
/*void main() {
int mileSpeed;
double kmSpeed;
printf("볼의 속도 입력(마일): ");
scanf("%d", &mileSpeed);
kmSpeed = mileSpeed * 1.609;
printf("%d마일은 %.3lfkm입니다.", mileSpeed, kmSpeed);
}*/
//km 변환
/*void main() {
int m;
double p;
printf("집의 면적 입력(제곱미터): ");
scanf("%d", &m);
p = m * 0.3205;
printf("%d제곱미터는 %.3lf평입니다.\n", m, p);
}*/
//면적 변환
/*void main() {
int price, person;
printf("총 금액: ");
scanf("%d", &price);
printf("총 인원: ");
scanf("%d", &person);
printf("%d명이 각각 %d원씩 지불\n", person - 1, price / person);
printf("1명이 %d원 지불\n", price - ((price / person) * (person - 1)));
}*/
//95p 2번
/*void main() {
int h, b, c, s;
scanf("%d %d %d %d", &h, &b, &c, &s);
printf("%.1lf MB\n", h * b * c * s / 8388608.0);
}*/
//코드업
/*void main() {
int w, h ,b;
scanf("%d %d %d", &w, &h, &b);
printf("%.2lf MB\n", w * h * b / 8388608.0);
}*/
//수행평가