0

In any programming language, make a program that outputs infinite subsequent powers of two, starting at any power of two. An example in js might look like this:
var num = 1;
while (true){
console.log(num);
num *= 2;
}
Tags to be included: code-golf, math, sequence