C++ Program to print given series:1 2 4 8 16 32 64 128
#include
#include
using namespace std;
int main()
{
int i;
for(i=1;i<=128;i*=2)
cout<<i<<" ";
return 0;
}
The Way to Programming
C++ Program to print given series:1 2 4 8 16 32 64 128
#include
#include
using namespace std;
int main()
{
int i;
for(i=1;i<=128;i*=2)
cout<<i<<" ";
return 0;
}