IF문1 [C#] if 조건문 if - else if - else using System; namespace MyFirstProgram { internal class Program { static void Main(string[] args) // main method { // if 조건문 Console.WriteLine("Please enter your age: "); int myAge = Convert.ToInt32(Console.ReadLine()); if (myAge > 100) { Console.WriteLine("You are too old to sign up!"); } else if (myAge = 18) { Console.Wr.. 2023. 3. 1. 이전 1 다음 728x90