1.

Write C++ to represent the following series: 1,2,4,8,16,32,64by using do –while.

Answer»

Explanation:

include

#include

using NAMESPACE STD;

INT main()

{

int i;

for(i=1;i<=128;i*=2)

COUT<

return 0;

}



Discussion

No Comment Found