/*
#include <stdio.h>
#include <stdlib.h>
int main()*
{
printf("Hello world!\n");
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
long long int a,b,c;
scanf("%lld %lld %lld" ,&a,&b,&c);
printf("%.lld\n" ,a+b+c);
printf("%.1f" ,(float)(a+b+c)/3);
return 0;
}
*/
/*
#include<stdio.h>
int main()
int a,b;{
scanf("%d %d" ,&a,&b);
printf("%.1f" ,(float)a*b/2);
return 0;
}
*/
#include<stdio.h>
int main()
{
int a,b;
scanf("%d" ,&a);
printf("%d %d" ,a,b);
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
*/