#include <stdio.
h>
#include <stdlib.h>
#include <stdbool.h>
int main()
{ int num1;
int num2;
char operator;
float result;
printf("Welcome to Nathan's Calculator\n");
printf("Please choose one of the following operations: '+', '-', '*', '/': ");
scanf("%c",&operator);
printf("Please enter the first number: ");
scanf("%d",&num1);
printf("\nPlease enter the second number: ");
scanf("%d",&num2);
switch(operator)
{
case '+':
result = num1 + num2;
printf("The sum of the two numbers is: %.2f", result);
break;
case '-':
result = num1 - num2;
printf("The difference of the two numbers is: %.2f", result);
break;
case '*':
result = num1 * num2;
printf("The product of the two numbers is: %.2f", result);
break;
case '/':
result = num1/num2;
printf("The quotient of the two numbers is: %.2f", result);
break;
default:
printf("Invalid operation");
}
return 0;
}