wow
This commit is contained in:
parent
d42448a9d0
commit
6fef06ae70
67 changed files with 436 additions and 1 deletions
21
04/ex02.c
Normal file
21
04/ex02.c
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int a,b,c,d;
|
||||
|
||||
printf("4개의 정수 입력 : ");
|
||||
scanf("%d %d %d %d", &a, &b, &c, &d);
|
||||
|
||||
if (a > b && a > c && a > d) {
|
||||
printf("가장 큰 수 : %d", a);
|
||||
}
|
||||
else if (b > a && b > c && b > d) {
|
||||
printf("가장 큰 수 : %d", b);
|
||||
}
|
||||
else if (c > a && c > b && c > d) {
|
||||
printf("가장 큰 수 : %d", c);
|
||||
}
|
||||
else {
|
||||
printf("가장 큰 수 : %d", d);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue