Computer Science, asked by amittyagi774, 10 months ago

Write a c program to print 1,2,4,8,16,32,64

Answers

Answered by gaurav724
4

Answer:

do you want it for c or c++

Answered by SoƱador
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