/*
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
#include<stdio.h>
int main()
{
int h,o,j;
scanf("%d %d %d",&h,&o,&j);
if(j<h+o)
{
if(h==o&&o==j)
{
printf("정삼각형");
}
else if(h==o||o==j||j==h)
{
printf("이등변삼각형");
}
else if(h*h+o*o==j*j)
{
printf("직각삼각형");
}
else
{
printf("삼각형");
}
}
else
{
printf("삼각형아님");
}
return 0;
}
조건문
1. if - else
2. switch - case
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a==10)
{
printf("hoje hello!");
}
else if(a==20||a==30)
{
printf("hoje bye,,,,,");
}
else
{
printf("hoje good!!!");
}
switch(a)
{
case 10 : printf("hoje hello!"); break;
case 20 :
case 30 : printf("hoje bye,,,,,"); break;
default : printf("hoje good!!!"); break;
}
}
#include<stdio.h>
int main()
{
char h;
scanf("%c",&h);
switch(h)
{
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 h;
scanf("%d",&h);
switch(h)
{
case 3:
case 4:
case 5:printf("spring"); break;
case 6:
case 7:
case 8:printf("summer"); break;
case 9:
case 10:
case 11:printf("fall"); break;
default:printf("winter"); break;
}
return 0;
}
#include<stdio.h>
int main()
{
int h;
scanf("%d",&h);
switch(h/10)
{
case 10:
case 9:printf("A"); break;
case 8:printf("B"); break;
case 7:printf("C"); break;
case 6:printf("D"); break;
default:printf("F"); break;
}
return 0;
}
*/
#include<stdio.h>
int main()
{
int h
}
:)