What im trying to do is : Exchange the value of each variable.
Example, if x = 3 and y = 10 and we run the program, x will be 10 and y will be 3.
The problem is that when im running the code, x is the same number as y....
i cant figure out how to make this code work..
double x;
double y;
Console.WriteLine("enter x");
x = double.Parse(Console.ReadLine());
Console.WriteLine("enter y");
y = double.Parse(Console.ReadLine());
x = y;
y = x;
Console.Write("new x :");
Console.WriteLine(x);
Console.Write("new y value :");
Console.WriteLine(y);