Arithmetic calculator using switch statement
#include #include void main() { int choice, no1, no2, result; clrscr(); printf(“\n\n*********************”); printf(“\nArithmetic Calculator”); printf(“\n*********************”); printf(“\n\n1. Addition\n2. Subtraction”); printf(“\n3. Multiplication\n4. Division”); printf(“\n\nEnter your choice: “); scanf(“%d”,&choice); switch(choice){ case 1: printf(“\nEnter the two number:”); scanf(“%d %d”, &no1, &no2); result = no1 + no2; printf(“\nThe Addition of %d and %d is %d”, no1, no2, result); break; case 2: printf(“\nEnter the two number:”); scanf(“%d %d”, &no1, &no2); result = no1 – no2; printf(“\nThe Subtaction of %d and %d is %d”, no1, no2, result); break; case 3: printf(“\nEnter the two number:”); scanf(“%d %d”, &no1, &no2); result = no1 * no2; printf(“\nThe Multiplication of %d...