+ 8

what is output

static void Main(string[ args) { int age = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("You are {0} years old", age); }

13th Apr 2018, 8:40 PM
Shubham goyal
Shubham goyal - avatar
5 odpowiedzi
+ 2
Doesn't compile, you missed a closing bracket for your string array argument. When you fixed that, you get a crash whenever the user enters something that isn't a number ;)
13th Apr 2018, 8:50 PM
Freddy
+ 9
super
16th Apr 2018, 3:01 PM
Shubham goyal
Shubham goyal - avatar
+ 8
cood
16th Apr 2018, 3:00 PM
Shubham goyal
Shubham goyal - avatar
+ 6
mast
21st Jul 2018, 5:21 PM
Shubham goyal
Shubham goyal - avatar
+ 6
best
21st Jul 2018, 5:21 PM
Shubham goyal
Shubham goyal - avatar