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.
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 ratings0% 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.