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"); } } } } }
3 Answers
+ 2
redundant }
+ 2
8 { vs 9 }
+ 2
make progz as painter makes picture