Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
284 views
in Technique[技术] by (71.8m points)

c# - Using console.readline in if statement

I just started c# coding with a very basic knowledge. I am tring to code a console application where if I put "PDH" as input it will give a name as output and few more input outputs are there. See the attachment. Can anyone tell is this going to work or not?

And i am facing another issue with debugging in visual studio code. No environment available for debug. Should i have to download "Dot Net Debugger" from somewhere???


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Your code won't work because it has a problem. You wrote Console.readline() instead of Console.ReadLine(), you also wrote console on some places instead of Console. Note that C# is a case sensitive language which means that the letter case in your code is important.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...