/*
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int s, v;
scanf("%d %d", &s, &v);
printf("%d", s>=v);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int s, v;
scanf("%d %d", &s, &v);
printf("%d", s==v);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int s, v;
scanf("%d %d", &s, &v);
printf("%d", s!=v);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int s;
scanf("%d", &s);
printf("%d", !s);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int s, v;
scanf("%d %d", &s, &v);
printf("%d", s&&v);
return 0;
*/
/*
#include <stdio.h>
int main()
{
int s, v;
scanf("%d %d", &s, &v);
printf("%d", s||v);
return 0;
}
삼항연산자 : 3개의 입력을 주면 1개의 출력을 뿅 준다 !!
(조건식) ? ( ) : ( )
printf("%d", 123>123 ? 10 : 20); // 20출력
-> 미니조건문 ( 특수한 경우에 많이 쓰임)
둘 중 큰수, 둘 중 작은수 , 둘 중 어떤것을 고를 때 .... 유용하게
int a, b;
printf("%d", a>b ? a : b ); // -> a, b 둘 중 큰 수를 골라서 출력해라
printf("%d", a<b ? a : b); // a, b 둘 중 작은 수를 골라서 출력해라
if(a>b)
{
printf("%d",a);
}
else
{
printf("%d",b);
}
*/
/*
#include <stdio.h>
int main()
{
int s, v;
scanf("%d %d", &s, &v);
printf("%d", s>v ? s:v);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int s, v, r, a;
scanf("%d %d %d", &s, &v, &r);
a = (s<v ? s:v) ;
printf("%d", a <r ? a : r);
return 0;
}
조건문
1. if-else 90%
2. switch-case 10%
; : 명령이 끝났을때만 !
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a>100) //a가 100 초과라면
{
if()
{
}
else
{
}
printf("hello");
}
else if(a>40) // a가 100이하이면서, a가 40 초과라면
{
printf("hi");
}
else if()
{
}
else // a가 40 이하라면
{
printf("bye..");
}
if( )
{
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int s;
scanf("%d", &s);
if(s<10)
{
printf("small");
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int s;
scanf("%d", &s);
if (s<10)
{
printf("small");
}
else
{
printf("big");
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int s, v;
scanf("%d %d", &s, &v);
if (s<v)
{
printf("<");
}
else if (s>v)
{
printf(">");
}
else
{
printf("=");
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int s, v;
scanf("%d %d", &s, &v);
if (s>v)
{
printf("%d",s-v);
}
else
{
printf("%d", v-s);
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int s;
scanf("%d", &s);
if (s%7==0)
{
printf("multiple");
}
else
{
printf("not multiple");
}
return 0;
}
*/