急求现成C语言简易计算器代码和流程图!!!十万火急

如题~~
要我提供代码的也可以!但一定要快~~
或者有现在的现成C语言简易计算器代码和流程图!
重奖~

using System;
calss Program
{
public void DisPlay()
{
////if else 和 switch case
//// 分别实现简单计算器
///*
// * 输入两个数字,然后选择运算,最终显示运算结果
// * /
Console.WriteLine("请输入第一个数字");
double a = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("请输入第二个数字");
double b = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("请选择需要的运算:");
Console.WriteLine("1:+");
Console.WriteLine("2:-");
Console.WriteLine("3:*");
Console.WriteLine("4:/");
string chose = Console.ReadLine();
switch (chose)
{
case "+":
case "1":
Console.WriteLine("{0}+{1}={2}", a, b, a + b);
break;
case "-":
case "2":
Console.WriteLine("{0}-{1}={2}", a, b, a - b);
break;

case "*":
case "3":
Console.WriteLine("{0}*{1}={2}", a, b, a * b);
break;
case "/":
case "4":
Console.WriteLine("{0}/{1}={2}", a, b, a / b);
break;
default:
Console.WriteLine();
break;
}
}
}
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-07-27
由于很长,给你说个网址 要的不
相似回答