dimanche 9 août 2015

How can I make a digital variable not accept the text variable

back:      Console.Write("The first number=   ");
int x = int.Parse(Console.ReadLine());

if (x== string ) { goto back;} // here my proplem

How can I model this: Meaning if x input string goto back

Aucun commentaire:

Enregistrer un commentaire