Produce 2 power n series using bitwise operator

I am printing 2n series up to 210

int main()
{
int i;
for(i=0;i<10;i++)
printf("%d\n",1<<i);

return 0;
}

This will be the output of the above code

1
2
4
8
16
32
64
128
256
512

Related Posts