using System;
namespace doing
{
class dome
{
static void Main(string[] args)
{
double a,b,c;
Console.WriteLine("请输入两个数:");
a = Convert.ToDouble(Console.ReadLine());
b = Convert.ToDouble(Console.ReadLine());
char symbol;
Console.WriteLine("请输入运算符:");
symbol = Convert.ToChar(Console.ReadLine());
if(symbol == "+")
{
c = a + b;
Console.WriteLine("{0} + {1} = {2}",a,b,c);
}
if(symbol == "-")
{
c = a + b;
Console.WriteLine("{0} - {1} = {2}",a,b,c);
}
if(symbol == "*")
{
c = a + b;
Console.WriteLine("{0} * {1} = {2}",a,b,c);
}
if(symbol == "/")
{
c = a + b;
Console.WriteLine("{0} / {1} = {2}",a,b,c);
}
Console.ReadLine();
}
}