max int c# code example
Example 1: c# random int
Random rnd = new Random();
int number = rnd.Next(1, 10);
Example 2: c# input integer
int chosenNumber = int.Parse(Console.ReadLine());
Example 3: c# max function
Math.Max(n1, n2)
Random rnd = new Random();
int number = rnd.Next(1, 10);
int chosenNumber = int.Parse(Console.ReadLine());
Math.Max(n1, n2)