/*#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d" ,&a);
b = a/60;
c =a%60;
printf("%d %d" ,b,c);
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d" ,&a,&b,&c);
printf("%.2f" ,(float)(a+b+c)/3);
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a,b,c,d,e;
scanf("%d %d\n%d" ,&a,&b,&c);
d=(b+c)/60;
e=(b+c)%60;
printf("%d %d" ,(a+d)%24,e);
return 0;
}
*/
/**
산술연산자 + - * / %
printf("%d",a+b); // a와b를 더한값을 출력하세요
비교연산자 > < >= <= == !=
printf("%d",a>b); // a가 b보다 큰지 (정수로)출력하세요
논리값 ( 1 or 0 , 맞다 or 아니다 )
1. >= <= != 항상 =이 오른쪽에 !!!
printf("%d", a>=b); (ok)
printf("%d", a=>b); (no) 컴퓨터가 못알아들어!!
2. = vs ==
b = 10; (대입) b에 10을 대입해
b == 10 (비교) b와 10이 같다면 1, 다르면 0을 대답해.
희윤=3;
희윤==3
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d" ,&a,&b);
printf("%d" ,a>b);
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d" ,&a,&b);
printf("%d" ,a==b);
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d" ,&a,&b);
printf("%d" ,b>=a);
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d" ,&a,&b);
printf("%d" ,a!=b);
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a;
scanf("%d" ,&a);
printf("%.3f" ,(float)9/5*a+32);
return 0;
}
비교연산자의 결과는 논리값으로만 나온다
*/
/**
산술연산자 + - * / %
비교연산자 > < >= <= == !=
논리연산자 ! && ||
논리값 ( 1 or 0 )
ex)
int a = 15;
printf("%d",!(a==15));
printf("%d", a>10 && a<20 );
quest1.
연필 가지고오세요 그리고 지우개 가지고오세요
quest1 을 통과하려면, 둘 다 가지고와야돼
&& 그리고
|| 또는
! 아니다 not
a b a&&b a||b !a
0 0 0 0 1
0 1 0 1
1 0 0 1 0
1 1 1 1
*/
/*
#include<stdio.h>
int main()
{
int a;
scanf("%d" ,&a);
printf("%d" ,!a);
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d" ,&a,&b);
printf("%d" ,a&&b);
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d" ,&a,&b);
printf("%d" ,a||b);
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d" ,&a,&b);
printf("%d" ,!(a||b));
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d" ,&a,&b);
printf("%d" ,(a&&!b)||(!a&&b));
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d" ,&a,&b);
printf("%d" ,(!a&&!b)||(a&&b));
return 0;
}
*/
/**
삼항연산자
a+b
!a
( 조건식 ) ? ( ) : ( )
조건식: 결과가 1 또는 0으로 나오는 식
int a = 100;
printf("%d", a>10 ? 100 : 500 );
printf("%d", a > b ? b : a );
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d" ,&a,&b);
printf("%d" ,a<b?b:a);
return 0;
}
*/
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d" ,&a,&b,&c);
printf("%d" ,b<a<c?b:a);
return 0;
}