fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. char a, b;
  6. char result;
  7.  
  8. printf("-50 이상 + 50 이하의 수 둘 입력 : ");
  9. scanf("%hhd %hhd", &a, &b);
  10. result = a + b;
  11. printf("두 수의 덧셈 결과 : %hhd\n", result);
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 2116KB
stdin
2 3
stdout
-50 이상 + 50 이하의 수 둘 입력 : 두 수의 덧셈 결과 : 5