using System;
class Program
{
static int RoundToNextPowerOf2(int n) {
if (n <= 0)
return 1;
return (int)Math.Pow(2, Math.Ceiling(Math.Log(n, 2)));
}
static void Main()
{
int num = 21;
Console.WriteLine($"Next power of 2: {RoundToNextPowerOf2(num)}");
}
}
/*
run:
Next power of 2: 32
*/