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
1
Expert's answer
2011-11-01T12:48:19-0400
#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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS