/*
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if (a<=170)
{
printf("CRASH %d",a);
}
else if(b<=170)
{
printf("CRASH %d",b);
}
else if(c<=170)
{
printf("CRASH %d",c);
}
else
{
printf("PASS");
}
return 0;
}
*/
계산기 1
#include <stdio.h>
int main()
{
int a,b;
char t;
scanf("%d %c %d",&a,&t,&b);
if (t=='+')
{
printf("%d",a+b);
}
else if(t=='-')
{
printf("%d",a-b);
}
else if(t=='*')
{
printf("%d",a*b);
}
else if(t=='/')
{
printf("%.2f",a/b);
}
return 0;
}