回复:逻辑错误 [英] Re: Logical Error

查看:71
本文介绍了回复:逻辑错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

static void Main string [] args
{
int testScore = 0 ;
控制台 "请输入测试分数:" );
testScore
= 转换 < span class ="typ"> ToInt32 控制台 ReadLine ());
如果 testScore > 60 < span class ="pln">
控制台 WriteLine "您的成绩是D< );
else 如果 testScore > 70
控制台 WriteLine "你的成绩是C" );
else 如果 testScore > 80
控制台 的WriteLine "您的成绩是B" );
else if testScore > 90
控制台 WriteLine "你的成绩是A" );
else
控制台 WriteLine "您的成绩是F< );
控制台 ReadLine ();
}

我需要帮助。我无法弄清楚什么是错的,除了它是第23行的CS113错误。任何和所有的帮助将不胜感激。谢谢你提前!

解决方案


 

我需要帮助。我无法弄清楚什么是错的,除了它是第23行的CS113错误。任何和所有的帮助将不胜感激。先谢谢你了!



没有错误从你的帖子。 
您需要提供更多代码详情。









static void Main(string[] args) { int testScore = 0; Console.Write("Please enter the test score: "); testScore = Convert.ToInt32(Console.ReadLine()); if (testScore > 60) Console.WriteLine("Your grade is an D"); else if (testScore > 70) Console.WriteLine("Your grade is a C"); else if (testScore > 80) Console.WriteLine("Your grade is a B"); else if (testScore > 90) Console.WriteLine("Your grade is an A"); else Console.WriteLine("Your grade is an F"); Console.ReadLine(); }

I need help. I can't figure out what's wrong except that it's a CS113 error on line 23. Any and all help will be appreciated. Thank you in advanced!

解决方案

I need help. I can't figure out what's wrong except that it's a CS113 error on line 23. Any and all help will be appreciated. Thank you in advanced!

It is not got the error from your post.
You need to give more code detail please.






这篇关于回复:逻辑错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆