/*
#include<stdio.h>
int main()
{
int a,b,c,d;
scanf("%d %d %d",&a,&b,&c);
if (a>b&&b>c || c>b&&b>a)
{
printf("%d",b);
}
else if (b>a&&a>c || c>a&&a>b)
{
printf("%d",a);
}
else if (a>c&&c>b || b>c&&c>a)
{
printf("%d",c);
}
else if (a==b&&a==c)
{
printf("%d",a);
}
else if (a==b&&b!=c || c==b&&b!=a)
{
printf("%d",b);
}
else if (a==c&&c!=b)
{
printf("%d",c);
}
else if (b==a&&a!=c)
{
printf("%d",a);
}
return 0;
}
#include<stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a==10 ||a==15 ||a==17)
{
printf("hi");
}
else if(a==20)
{
printf("hello");
}
else
{
printf("bye...");
}
switch(a)
{
case 10 :
case 15 :
case 17 : printf("hi"); break;
case 20 : printf("hello"); break;
default : printf("bye..."); break;
}
return 0;
}
#include<stdio.h>
int main()
{
char a;
scanf("%c",&a);
switch (a)
{
case 'A' : printf("best!!!"); break;
case 'B' : printf("good!!"); break;
case 'C' : printf("run!"); break;
case 'D' : printf("slowly~"); break;
default : printf("what?"); break;
}
return 0;
}
#include<stdio.h>
int main()
{
int a;
scanf("%d",&a);
switch (a/3)
{
case 1 : printf("spring"); break;
case 2 : printf("summer"); break;
case 3 : printf("fall"); break;
default : printf("winter"); break;
}
return 0;
}
#include<stdio.h>
int main()
{
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
switch (a+b+c+d)
{
case 0 : printf("모"); break;
case 1 : printf("도"); break;
case 2 : printf("개"); break;
case 3 : printf("걸"); break;
case 4 : printf("윷"); break;
}
}
*/
/*
#include<stdio.h>
int main()
{
int a,c;
char b;
scanf("%d%c%d",&a,&b,&c);
switch (b)
{
case '+' : printf("%d",a+c); break;
case '/' : printf("%.2f",(double)a/c); break;
case '-' : printf("%d",a-c); break;
case '*' : printf("%d",a*c); break;
}
}
조건문
1. if else 90
2. switch case 10
반복문
1. for 45
2. while 45
3. do-while 10
for(시작식;조건식;증감식)
{
반복할 명령;
}
i=i+1; i++;
i=i-1; i--;
복합대입연산자
i=i+10; i+=10;
sum=sum+100; sum+=100;
+ - * / %
sum=sum*5; sum*=5;
#include<stdio.h>
int main()
{
int i; // iteration 횟수 회차 번째
for(i=1;i<=5;i++)
{
if()
{
printf("%d ",i);
}
}
if()
{
for(i=50;i>=37;i-=2)
{
if()
{
printf("%d ",i);
}
}
}
}
#include<stdio.h>
int main()
{
int i;
for (i=1;i<=100000000000000000000000000000000;i++)
{
printf("%d ",i);
}
return 0;
}
#include<stdio.h>
int main()
{
int i,n;
scanf("%d",&n);
for (i=1;i<=n;i++)
{
printf("%d ",i);
}
}
#include<stdio.h>
int main()
{
int a,b,mx,mn;
scanf("%d %d",&a,&b);
if (a>b)
{
mx = a;
mn = b;
}
else if (a<b)
{
mx = b;
mn = a;
}
for (mn;mn<=mx;mn++)
{
printf("%d ",mn);
}
return 0;
}
#include<stdio.h>
int main()
{
double a,b;
scanf("%lf %lf",&a,&b);
for (a;a<=b;a+=0.01)
{
printf("%.2lf ",a);
}
}
*/
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if (a%2==0)
{
a++;
}
for (;a<=b;a+=2)
{
printf("%d ",a);
}
}



