#include<stdio.h>
#include<conio.h>
void main()
{
int no1, no2, op;
clrscr();
printf("Enter the value of first non");
scanf("%d",&no1);
printf("Enter the value of second non");
scanf("%d",&no2);
printf("n choose the arithmatic operation you want to performn");
printf("n press [1] for addition");
printf("n press [2] for substraction");
printf("n press [3] for multiplication");
printf("n press [4] for divisionn");
scanf("%d",&op);
switch(op)
{
case 1: Printf("The sum of the two numbers is %d",no1+no2);
break;
case 2: Printf("The substraction of the two number is %d",no1-no2);
break;
case 3: Printf("The multiplication of the two number is %d",no1*no2);
break;
case 4: Printf(" The division of the two number is %d",no1/no2);
break;
default: Printf("Unknown number, program will terminate");
break;
}
getch();
}
#include<conio.h>
void main()
{
int no1, no2, op;
clrscr();
printf("Enter the value of first non");
scanf("%d",&no1);
printf("Enter the value of second non");
scanf("%d",&no2);
printf("n choose the arithmatic operation you want to performn");
printf("n press [1] for addition");
printf("n press [2] for substraction");
printf("n press [3] for multiplication");
printf("n press [4] for divisionn");
scanf("%d",&op);
switch(op)
{
case 1: Printf("The sum of the two numbers is %d",no1+no2);
break;
case 2: Printf("The substraction of the two number is %d",no1-no2);
break;
case 3: Printf("The multiplication of the two number is %d",no1*no2);
break;
case 4: Printf(" The division of the two number is %d",no1/no2);
break;
default: Printf("Unknown number, program will terminate");
break;
}
getch();
}