#include <stdio.h>
#include <stdlib.h>
int main()
{
int date1,date2;
char op;
printf("please enter an expression:\n"); //请输入一个表达式
scanf("%d%c%d",&date1,&op,&date2);
switch(op)
{
case'+':
printf("%d+%d=%d\n",date1,date2,date1+date2);
case
计算输出表达式的值,其中算数运算包括:+,-,*,/,
最新推荐文章于 2024-03-26 17:46:31 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)