smart boy

smart boy

  • NA
  • 2
  • 943

use of unassigned local variable error

Apr 4 2018 7:00 AM
static void Main(string[] args)
{
int a, b;
int c;
Console.Write("enter 2 values");
a = Console.Read();
b = Console.Read();
a = c;
b = a;
c = b;
Console.Write(a);
Console.Write(b);

Answers (2)