namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入变量a的值:");
string a=Console.ReadLine();
Console.WriteLine("请输入变量b的值:");
string b=Console.ReadLine();
Console.WriteLine("a+b的和为:");
double a1=double.Parse(a);
double b1 = double.Parse(b);
double c = a1 + b1;
Console.WriteLine(c);
Console.ReadLine();
}
}
}