Untitled

Anonymous
csharp
11/18/2023 9:58 AM
428 B
22
Indexable
static void Main(string[] args)
        {
            int number = Convert.ToInt32(Console.ReadLine());
            bool evenNumber = (number % 2 == 0); 
            if (evenNumber)
            {
                Console.WriteLine($"{number} is even.");
            }

            Console.ReadLine();
        }
Editor is loading...
Leave a Comment