0

C#...Any can one tell what is the error occurred in this prgm??

class Program { static void Main(string[] args) { int age= Convert.ToInt 32 (Console.ReadLine ()); if (age > 14) { if(age > 18) { Console.WriteLine("Adult"); } else { Console.WriteLine("Teenager"); } } else { if (age > 0) { Console.WriteLine("Child"); } else { Console.WriteLine("Something's wrong"); } } } } }

19th Jan 2018, 6:37 PM
MƑhÄƈ ĶƱméƙ
MƑhÄƈ ĶƱméƙ - avatar
3 Answers
+ 2
redundant }
19th Jan 2018, 6:59 PM
UraL
+ 2
8 { vs 9 }
19th Jan 2018, 7:01 PM
UraL
+ 2
make progz as painter makes picture
19th Jan 2018, 7:02 PM
UraL