SIMULATOR

CODING PART

#include < stdio.h >
#include < conio.h>
void main ( )
float n1, n2 ;
char op ;
float result
clrscr() ;
printf("\n Enter First Number ");
scanf("%f ", &n1);
printf("Enter The Operation: ");
scanf("%c",&op);
printf("\n Enter Second Number :");
scanf("%f",&n2);
switch(op)
{
case'+':
Result=n1+n2;
printf("\n Additoion =%f", Result) ;
break;
case '-':
Result= n1-n1;
printf("\n Subtracton =%f, Result")
break ;
case '*':
Result= n1*n1;
printf("\n Multiplication =%f, Result")
break ;
case '/':
Result= n1/n1;
printf("\n Division1 =%f, Result")
break ;
default :
printf ("\n Choose Proper Operator") ;
}
getch() ;
}

EXECUTION PART