Untitled

 avatar
unknown
csharp
2 years ago
319 B
9
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