64 736
Assignments Done
99,3%
Successfully Done
In September 2018

Answer to Question #4937 in C++ for salma

Question #4937
write a program to print the series: 1^2, 2^3, 3^4, 4^5, up to 10^11
Expert's answer
#include "stdafx.h"
#include <math.h>
#include "conio.h"
#include
<iostream>
using namespace std;
int _tmain(int argc, _TCHAR*
argv[])
{
for(double
i=1;i<=10;i++){
cout<<i<<"^"<<i+1<<" =
"<<pow(i,i+1)<<"\n";
}
getch();
return 0;
}

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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions