#include <stdio.h>
#include <stdlib.h>
#pragma warning (disable:4996)

int main(void)
{
 char 부호;
 int a, b,result;
 scanf("%d%c%d", &a, &부호, &b);
 if (부호 = '/')
 {
  result = a / b;
 }
 else if (부호 = '*')
 {
  result = a*b;
 }
 else if (부호 = '+')
 {
  result = a + b;
 }
 else if (부호 = '-')
 {
  result = a - b;
 }
 printf("%d%c%d=%d ", a, 부호, b, result);
 system("pause");
 return 0;
}


이렇게 했는데 씹븅신됬다.


도움좀




if 구문이랑 case 구문 써서 만드는거임