Wednesday, February 11, 2015

C Program to print given series 1 2 4 8 16 32 64 128


#include<iostream.h>
#include<conio.h>


void main()
{
clrscr();
int i;

for(i=1;i<=128;i*=2)
cout<<i<<" ";
getch();
}