using System; namespace csAdd { class Add { static void Main() { string s = "0"; int x; x = Int32.Parse(s); x++; byte y = 2; int sum = x + y; // implicit conversion byte -> int Console.WriteLine(x.ToString() + "+" + y.ToString() + "=" + sum.ToString()); Console.ReadLine(); //checked //{ int myInt = 258; byte myByte = (byte)myInt; Console.WriteLine("(byte)" + myInt.ToString() + " --> " + myByte.ToString()); Console.ReadLine(); //} } } }