❔ help me about if and elses please
hi guys i am new at c# and i cant understand where is the problem at this code.

; after ifs are oddint.TryParse to verify user input is even valid.true or false to inform you if it succeeded or not, so you can use it directly in a condition,out argument inline in an argument list,out argument contains valid data afterwards,int. It exists only for backwards compatibility reasons and should be considered last resort. (Note: Convert does contain useful conversion methods: To/FromBase64String, To/FromHexString, ToString(X value, int toBase), ToX(string? value, int fromBase))try/catch statement to handle invalid input, which is a less clean solution. 
else instead of else if/close ;int.TryParseoutoutintTo/FromBase64StringTo/FromHexStringToString(X value, int toBase)ToX(string? value, int fromBase)tryelse ifif(number4 > 80)
{
Console.WriteLine("A");
}
...return Convert.ToInt32(null); //returns 0. null should not be considered as 0 ever
return Convert.ToInt32("asdf"); //throws FormatExceptionvar number = int.Parse("abc"); //throws FormatException
var number = int.Parse(""); //throws FormatExceptionif (int.TryParse(someInput, out var result))
{
Console.WriteLine($"Thanks for giving me the following number: {result}!");
}
else
{
Console.WriteLine("You didn't give me a valid number :c");
}