Write C++ to represent the following series: 1,2,4,8,16,32,64
by using do –while.
Answers
Answered by
0
Explanation:
include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int i;
for(i=1;i<=128;i*=2)
cout<<i<<" ";
return 0;
}
Similar questions
Hindi,
2 months ago
Sociology,
2 months ago
Physics,
4 months ago
Psychology,
10 months ago
Art,
10 months ago