0

I have a problem with variables

11th Nov 2016, 11:41 AM
DAIZ
DAIZ - avatar
8 Answers
0
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) { int age = Console.ReadLine(); if (age < 18) { Console.WriteLine("you are still kid"); } else { Console.WriteLine("you are an adult"); } } } }
11th Nov 2016, 11:42 AM
DAIZ
DAIZ - avatar
0
how o can fix it
11th Nov 2016, 11:42 AM
DAIZ
DAIZ - avatar
0
Hi. I have no problem with variables, please explain your issue in more details.
11th Nov 2016, 11:44 AM
K. T.
K. T. - avatar
0
because I want it to ask you about your age not like int x =14
11th Nov 2016, 11:44 AM
DAIZ
DAIZ - avatar
0
int age =Convert.ToInt32( Console.ReadLine());
11th Nov 2016, 11:45 AM
K. T.
K. T. - avatar
0
am using c#
11th Nov 2016, 11:55 AM
DAIZ
DAIZ - avatar
0
said that there's no definition 'Tlont32'
11th Nov 2016, 11:57 AM
DAIZ
DAIZ - avatar
0
There is typo in 'Tlont32', use ToIntr32
11th Nov 2016, 12:18 PM
K. T.
K. T. - avatar