Write a c program to print 1,2,4,8,16,32,64
Answers
Answered by
4
Answer:
do you want it for c or c++
Answered by
0
Answer:
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i=1;
do
{
cout<<i<<endl;
i=i+i;
}while(i<=64);
getch();
}
Output will be...
1
2
4
8
16
32
64
Similar questions