компилировал на сайте: https://www.onlinegdb.com/online_c_compiler
#include <stdio.h>
int main() {
int HAH, HCH, HDH;
char HBH;
printf("Enter your first number: ");
scanf("%d", &HAH);
printf("Enter your second number: ");
scanf("%d", &HCH);
printf("Enter your operation (+ or -): ");
scanf("%c", &HBH);
if (HBH == '+') {
HDH = HAH + HCH;
} else if (HBH == '-') {
HDH = HAH / HCH;
} else {
HDH = HAH;
}
printf("The result is: %d", HDH);
return 0;
}
выдаёт:
Enter your first number: 4
Enter your second number: 3
Enter your operation (+ or -): The result is: 4
...Program finished with exit code 0
Press ENTER to exit console.