c# beginner problem

Posted by Yehonatan on Stack Overflow See other posts from Stack Overflow or by Yehonatan
Published on 2010-04-08T17:18:26Z Indexed on 2010/04/08 17:23 UTC
Read the original article Hit count: 417

Filed under:
|

I am trying to learning C# and I have problem with following code

using System;

class IfSelect
{
 public static void Main()
 {
  string myInput;
  int myInt; 
  Console.Write("Please enter a number: ");
  myInput = Console.ReadLine();
  myInt = Int32.Parse(myInput);

  if (myInt = 10)
  {
   Console.WriteLine("Your number is 10.", myInt);
  } 
 }
} 

© Stack Overflow or respective owner

Related posts about c#

Related posts about beginner