mirror of
https://github.com/VictorEijkhout/TheArtOfHPC_vol3_cppf08programming.git
synced 2026-01-24 22:44:48 +09:00
26 lines
589 B
C++
26 lines
589 B
C++
/****************************************************************
|
|
****
|
|
**** This file belongs with the course
|
|
**** Introduction to Scientific Programming in C++/Fortran2003
|
|
**** copyright 2016-2023 Victor Eijkhout eijkhout@tacc.utexas.edu
|
|
****
|
|
**** pyth.cxx : pythagoras triples
|
|
****
|
|
****************************************************************/
|
|
|
|
#include <iostream>
|
|
using std::cin;
|
|
using std::cout;
|
|
#include <cmath>
|
|
|
|
int main() {
|
|
|
|
for (int x=0; x<=5; ++x) {
|
|
double x11 = pow(11,x);
|
|
long i11 = pow(11,x);
|
|
cout << x11 << " " << i11 << '\n';
|
|
}
|
|
|
|
return 0;
|
|
}
|