since I'm a bloody beginner, I'll need some help here:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Gauss_Algorithmus
{
class Program
{
static void Main(string[] args)
{
if (x1 > 0 && x2 > 0)
{
x02 = (x2 * x1) - (x1 * x2);
y02 = (y2 * x1) - (x1 * y2);
z02 = (z2 * x1) - (x1 * z2);
d02 = (d2 * x1) - (x1 * d2);
}
Console.WriteLine("2.: " + x02 + "x + " + y02 + "y + " + z02 + " d02);
}
}
It says:
Use of unassigned local variable "x01, etc....
I understand the error and know that x01 is just defined in a local scope, but don't know how to fix it since x01, etc. needs to be defined inside the if loop.
I hope you can help me out guys, thanks in advance..
x01either, which means this isn't the code producing this error. Please provide a minimal reproducible example.}that would close the scope of thenamespacefunction