Simple Calculator using Switch Case:
int main() {char operator;double num1, num2, result; } Explanation:- Headers and Main Function: The code begins by including the standard input-output library (<stdio.h>) and defining the main function. Variables Declaration:…