/*
산술연산자 + - * / %
비교연산자 > < >= <= == !=
논리연산자 !(not) &&(and) ||(or)
1. 비교연산의 결과는 "1 or 0"(논리값) 으로만 나온다
printf("%d", a>b); // true 1 , false 0
2. >= <= != =을 항상 오른쪽에
a>=b (o)
a=>b (x) 컴파일불가능
3. == vs =
a=10; (대입) a에 10을 대입해.
a==10 (비교) a와 10이 같다면1, 다르다면 0으로 대답해
논리연산자
1 or 0
1. ! not
int a=10;
printf("%d", !(a==10)); // 1 or 0
printf("%d", !(a>10) ) ;
2. && and
a && b : a와 b가 모두 1이라면 1
int x=5, y=10;
printf("%d", x==10 && y==5 );
3. || or
a||b : a또는 b가 1이라면 1
quest1. 마우스가져와 그리고 키보드가져와
1 && 0 -> 0
quest2. 마우스가져와 또는 키보드가져와
1 || 0 -> 1
a b a && b a || b
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 1
*/
/*#include <stdio.h>
int main()
{
int s, t;
scanf("%d %d", &s, &t);
printf("%d", s>t);
return 0;
}
*/
/*#include <stdio.h>
int main()
{
int s, t;
scanf("%d %d", &s, &t);
printf("%d", s==t);
return 0;
}
*/
/*#include <stdio.h>
int main()
{
int s, t;
scanf("%d %d", &s, &t);
printf("%d", s<=t);
return 0;
}
*/
/*#include <stdio.h>
int main()
{
int s, p;
scanf("%d %d", &s, &p);
printf("%d", s!=p);
return 0;
}
*/
/*#include <stdio.h>
int main()
{
int t;
scanf("%d", &t);
printf("%d", !(t==1));
return 0;
}
*/
/*#include <stdio.h>
int main()
{
int s, t;
scanf("%d %d", &s, &t);
printf("%d", s&&t);
return 0;
}
*/
/*#include <stdio.h>
int main()
{
int p, r;
scanf("%d %d", &p, &r);
printf("%d", p||r);
return 0;
}
;은 명령의끝
#include <stdio.h>
int main()
{
int p, r;
scanf("%d %d", &p, &r);
if ( p==r && p>10)
{
if()
{
printf("hello");
}
else
{
}
}
else if ()
{
printf("hi");
}
else
{
printf("bye..");
}
return 0;
}
*/
/*#include <stdio.h>
int main()
{
int t;
scanf("%d", &t);
if( t<10)
{
printf("small");
}
return 0;
}
*/
/*#include <stdio.h>
int main()
{
int t;
scanf("%d", &t);
if( t<10)
{
printf("small");
}
else
{
printf("big");
}
return 0;
}
*/
/*#include <stdio.h>
int main()
{
int r, l;
scanf("%d %d", &r, &l);
if ( r>l)
{
printf(">");
}
else if ( r<l)
{
printf("<");
}
else
{
printf("=");
}
return 0;
}
*/
/*#include <stdio.h>
int main()
{
int s, p;
scanf("%d %d", &s, &p);
if ( s<p)
{
printf("%d", p-s);
}
else if ( s>p)
{
printf("%d", s-p);
}
else
{
printf("0");
}
return 0;
}
*/
/*#include <stdio.h>
int main()
{
int a;
scanf("%d", &a);
if (a%7==0)
{
printf("multiple");
}
else
{
printf("not multiple");
}
return 0;
}
*/
/*#include <stdio.h>
int main()
{
float a;
scanf("%f", &a);
if (50<=a && a<=60)
{
printf("win");
}
else
{
printf("lose");
}
return 0;
}
*/



