C#でのネストされたif文の例
int x = 10; int y = 5; int z = 3; if (x > y) { if (x > z) { Console.WriteLine("x is the largest number"); } else { Console.WriteLine("z is the largest number"); } } else { if (y > z) { Console.WriteLine("y is the largest number"); >>More