👤

using System;
using System.Runtime.ExceptionServices;

namespace exercitiul6;

class math {

static void Main(string[] args)
{
int firstNumber;
int secondNumber;
int thirtNumber;

TextPrintUsers();

Console.WriteLine(" Introduce ti primul numar ");
firstNumber = int.Parse(Console.ReadLine());


Console.WriteLine("Introduce ti a doua persoana");
secondNumber= int.Parse(Console.ReadLine());

Console.WriteLine("Introduce ti a treia persoana");
thirtNumber = int.Parse(Console.ReadLine());

Min(firstNumber, secondNumber,thirdNumber);

}

static void TextPrintUsers()
{

Console.WriteLine("tastati valorile");

}

static void Min(int firstNumber , int secondNumber, int thirdNumber) {

int min; // variabila locala;

if(firstNumber < secondNumber)
{
min = firstNumber;
}
if(secondNumber < firstNumber)
{
min = secondNumber;
}
if(firstNumber < thirdNumber)
{
min = thirdNumber;
}
if(thirdNumber < firstNumber)
{
min = thirdNumber;
}
if(secondNumber < thirdNumber)
{
min = secondNumber;
}
if(thirdNumber< secondNumber)
{
min = thirdNumber;
}


}


}

Efectiv imi zice ,, the name thirdNumber,, does not exist in current context .cineva care mi zice ce am gresit si ce sa modific


Răspuns :