#include<stdio.h>
int main(){
float n1=3,n2=5;
char op='+';
float result =0;
switch(op){
case '+':
result=n1+n2;
printf("%.2f",result);
break;
case '-':
result=n1-n2;
printf("%.2f",result);
break;
case '/':
result=n1/n2;
printf("%.2f",result);
break;
case '*':
result=n1*n2;
printf("%.2f",result);
break;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: