My code :
sbyte b;
string x;
sbyte a;
a = 5;
x = Console.ReadLine();
b = Convert.ToSByte(Console.ReadLine());
b += a;
Console.WriteLine(" my number (0) " , b );
Console.ReadKey();
My result :
abd
5
my number (0)
Problem in console application
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Former memberPosted Aug 26, 2013, 1:50 PM EDT
string x;
sbyte a;
a = 5;
x = Console.ReadLine();
b = Convert.ToSByte(Console.ReadLine());
b += a;
Console.WriteLine(" my number {0} " , b );
Console.ReadKey();