1、请完成以下计算器代码的填空void BasicCalc(){double num1=0,num2=0;char ch;double result = 0;printf("请输入基本计算(+-*/%)公式(示例:1+2):");scanf("① ", & ② );switch(ch){case '+': result=num1+num2;break;case '-': result=num1-num2; break;case '*': result=num1*num2; break;case '/':if ( ③ ){printf("错误:输入的除数为0\n");return;}else④;break;case '%': if (num2==0.0){printf("错误:输入的除数为0\n"); return;}else { ⑤ ;printf("计算结果为:%d %c %d = %d\n",(int)num1,ch,(int)num2,(int)result);return;}break;default: printf("错误:输入的运算符不正确\n");return;}printf("计算结果为:⑥ \n",num1,ch,num2,result);return;}