Answer to Question #4937 in C++ for salma
write a program to print the series: 1^2, 2^3, 3^4, 4^5, up to 10^11
1
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!
Learn more about our help with Assignments:
C++
Comments
Leave a comment