Untitled
unknown
plain_text
3 years ago
320 B
9
Indexable
import java.util.Scanner;
public class Lab4
{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
for (int i = 0 ; i <= n; i++) {
if (i % 2 == 0) {
System.out.println((int)Math.pow(2, i));
}
}
}
}
Editor is loading...