using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
double z = 0;
double x = Convert.ToDouble(Console.ReadLine());
string u = Console.ReadLine();
double y = Convert.ToDouble(Console.ReadLine());
switch (u)
{
case "+":
z = x + y;
Console.WriteLine("{}{}{}={}",x,u,y,z);
break;
case "/":
z = x / y;
Console.WriteLine("{}{}{}={}",x,u,y,z);
break;
case "-":
z = x - y;
Console.WriteLine("{}{}{}={}",x,u,y,z);
break;
case "*":
z = x * y;
Console.WriteLine("{}{}{}={}",x,u,y,z);
break;
case "%":
z = x % y;
Console.WriteLine("{}{}{}={}",x,u,y,z);
break;
default:
Console.WriteLine("您输入的运算符号有问题");
break;
}
Console.ReadLine();
}
}
}
习惯受伤