2
Answers

Question for If Codes

Nicolas

Nicolas

15y
2.6k
1
Hi There, I'm Nick

I'm with a problem with if codes in visual c# 2008

in this code:

Console.WriteLine("Years  old? \n");
            var1 = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("\n");
            if (var1 < 17)
            {
                Console.WriteLine("Under Old");
                Console.ReadLine();
            }
            else if (var1 > 65)
            {
                Console.WriteLine("Up Up Up !");
                Console.ReadLine();

I want that if the number is less than 17 it shows a answer, if he shows more than 65 different answer, and it is between 18 and 64 show another answer him, is how?

Thx

and sorry for my NoobNess with this >.<

PS. This code not complete, only this part I have the problem

Answers (2)