0% found this document useful (0 votes)
73 views2 pages

Power of 2 Calculation Using For Loop

The document describes a program that uses a for loop to compute the power of 2. The program takes no input and outputs the results of 2 to the power of integers from 0 to 10. The aim was successfully achieved by computing the power of 2 using a for loop.

Uploaded by

Jasvinder kour
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views2 pages

Power of 2 Calculation Using For Loop

The document describes a program that uses a for loop to compute the power of 2. The program takes no input and outputs the results of 2 to the power of integers from 0 to 10. The aim was successfully achieved by computing the power of 2 using a for loop.

Uploaded by

Jasvinder kour
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

ROLL NO 9043/18

DATE: 10-04-2020

PRACTICALS : 14

AIM: COMPUTE THE POWER OF 2 USING FOR LOOP.

PROGRAM:

INPUT:

OUTPUT:

RESULT: hence,compute the power of 2 successfully.

You might also like