Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _04.EvenPowersof2
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int number = int.Parse(Console.ReadLine());
- int num = 1;
- for (int value = 0; value <= number; value+=2)
- {
- Console.WriteLine(num);
- num = num * 2 * 2;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement