76 951
Assignments Done
Successfully Done
In June 2019

Answer to Question #23735 in C++ for EMMANUEL

Question #23735
write a program which inputs a positive integer n and output 2 raised to the power of n.
Expert's answer
using namespace std;
int main (){
int a,i,p=1;
cout<<"Enter a positive integer n : ";
for (i=0;i<a;i++)
cout<<" 2 raised to the power of n :"<<p<<endl; &
system("PAUSE"); &

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions