Ivan Ivanov
Posted on January 21, 2023
using System;
using System.Diagnostics.Tracing;
namespace EvenPowersOf_2
{
internal class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
for (int power = 0; power <= n; power++)
{
if (power % 2 == 0)
{
Console.WriteLine(Math.Pow(2, power));
}
}
}
}
}
💖 💪 🙅 🚩
Ivan Ivanov
Posted on January 21, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.