+ 1

The code in try it yourself doesn’t work

The code when run doesn’t work, I haven’t changed anything, but it doesn’t do what it’s supposed to What is wrong with it? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { string yourName; Console.WriteLine("What is your name?"); yourName = Console.ReadLine(); Console.WriteLine("Hello {0}", yourName); } } }

23rd Feb 2018, 9:14 PM
Chris
8 Answers
+ 8
will you stop with the "sir" already? ._.
23rd Feb 2018, 9:29 PM
Burey
Burey - avatar
+ 5
C# course => Basic Concepts => Getting User Input works well for me....
23rd Feb 2018, 9:23 PM
Burey
Burey - avatar
+ 4
agreed @Burey sir it is taking input and giving user input as output i think @chris you ran a c# code in other compiler
23rd Feb 2018, 9:27 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 3
ok @Burey sir i fill werid to call elder by there name directly😁
23rd Feb 2018, 9:31 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
plz can you post code😊
23rd Feb 2018, 9:17 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
I have the code that is the problem
23rd Feb 2018, 9:20 PM
Chris
+ 2
I can pick the wrong compiler for the code?
23rd Feb 2018, 9:30 PM
Chris
0
the code seems fine. Sometimes SL reports no output, or time limit exceeded, I usually don't give much importance to problems because they just happen, maybe 'cause the servers are busy or something. As for the 'sir' thing, I've seen it so much that idk if it's said respectfully or mockingly -_- It's like prosternating to someone, but how is that appropriate in our nowaday world, when we should consider everyone equal? That's why it sounds like it's used mockingly.
24th Feb 2018, 6:52 AM
lion
lion - avatar