求C#高手解答一下,这里到底是哪里出现问题

staticvoidMain(string[]args){doublefirstnumber,secondnumber;stringusername;Console.Wr... static void Main(string[] args)
{
double firstnumber,secondnumber;
string username;
Console.WriteLine("enter your name:");
username = Console.readline();
Console.Writeline("welcome {0}!", username);
Console.WriteLine("now give me a number:");
firstnumber =Convert.ToDouble (console.readline());
Console.WriteLine("now give another number:");
secondnumber =Convert .ToDouble (Console.ReadLine());
Console.Writeline("the sum of {0})and (1) is (2).",firstnumber,secondnumber ,firstnumber + secondnumber);
Console.WriteLine ("the result of subtracing{0} from {1} is {2}.",secondnumber ,firstnumber ,firstnumber - secondnumber);
Console.WriteLine ("the product of {0} and {1} is {2}.",firstnumber,secondnumber,firstnumber * secondnumber);
Console.WriteLine("the result of dividing {0} by {1} is {2}.",firstnumber ,secondnumber ,firstnumber / secondnumber );
Console.WriteLine("the remainder after dividing {0} by {1} is {2}.", firstnumber , secondnumber ,firstnumber % secondnumber );
Console.readkey();
}
展开
 我来答
v_dan
2012-07-10 · TA获得超过223个赞
知道小有建树答主
回答量:194
采纳率:50%
帮助的人:119万
展开全部
大小写搞错了,还有一处本来应该用花括号,你用了小括号
这是我改过的
static void Main(string[] args)
{
double firstnumber, secondnumber;
string username;
Console.WriteLine("enter your name:");
username = Console.ReadLine();
Console.WriteLine("welcome {0}!", username);
Console.WriteLine("now give me a number:");
firstnumber = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("now give another number:");
secondnumber = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("the sum of {0} and {1} is {2}.", firstnumber, secondnumber, firstnumber + secondnumber);
Console.WriteLine("the result of subtracing{0} from {1} is {2}.", secondnumber, firstnumber, firstnumber - secondnumber);
Console.WriteLine("the product of {0} and {1} is {2}.", firstnumber, secondnumber, firstnumber * secondnumber);
Console.WriteLine("the result of dividing {0} by {1} is {2}.", firstnumber, secondnumber, firstnumber / secondnumber);
Console.WriteLine("the remainder after dividing {0} by {1} is {2}.", firstnumber, secondnumber, firstnumber % secondnumber);
Console.ReadKey();
}
scientistant
2012-07-10 · 超过30用户采纳过TA的回答
知道答主
回答量:96
采纳率:0%
帮助的人:78.7万
展开全部

你这个地方写错了,你用的是(1),(2),应该是{1},{2},如图所示。

本回答被网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
灵葬外与他29
2012-07-10 · TA获得超过2183个赞
知道小有建树答主
回答量:1221
采纳率:50%
帮助的人:946万
展开全部
异常代码发出来看下!
你这代码看的眼花!没心情帮你仔细看!
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
wangqianglife
2012-07-10 · 超过29用户采纳过TA的回答
知道答主
回答量:107
采纳率:0%
帮助的人:45.4万
展开全部
抛什么异常
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
1005930951
2012-07-10
知道答主
回答量:35
采纳率:0%
帮助的人:9.4万
展开全部
000
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(3)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式