0

How to solve all the cases?

I'm using C# and in the second task "getting user input" - this is pretty straight forward but how does SoloLearn expect the cases to be solved?? I mean the cases I can solve 1 by 1 but it always comes up like "yipicayay" you did something wrong Yada Yada... Yoda said... You solve the 1 then the 2. But then the first is of course wrong. I don't get it! Can someone please elaborate? :)

12th Jun 2021, 12:38 PM
Dennis Graves
Dennis Graves - avatar
5 odpowiedzi
+ 10
string name = Console.ReadLine(); int age = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Name: "+ name); Console.WriteLine("Age: "+ age);
12th Jun 2021, 1:26 PM
Simba
Simba - avatar
+ 1
Super i get the idea 🙂 thanks
12th Jun 2021, 10:51 PM
Dennis Graves
Dennis Graves - avatar
0
string name = "Emma"; int age = 23; Console.ReadLine(); Console.WriteLine("Name: "+ name); Console.WriteLine("Age: "+ age);
12th Jun 2021, 12:58 PM
Dennis Graves
Dennis Graves - avatar
0
Use input (Console.ReadLine) to set age The test cases will provide appropriate values, just like you would get input from user
12th Jun 2021, 12:58 PM
Benjamin Jürgens
Benjamin Jürgens - avatar
- 1
So I should not put in the name and age?
12th Jun 2021, 1:00 PM
Dennis Graves
Dennis Graves - avatar