C++ Program to print given series:1 2 4 8 16 32 64 128…. n

C++ Program to print given series:1 2 4 8 16

In this program code, you will learn to print the following pattern series….

given series:1 2 4 8 16 32 64 128…. n

Program:

Output:

Enter the value of n : 12
1 2 4 8 16 32 64 128 256 512 1024 2048 4096

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top