1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main()
{
int data;
double euall, euall2, euall3, euall4;
double eual, eual2, eual3, eual4;
double eulerall;
int eunum, eunum2;
int eunm, eunm2;
int count, count2, count3;
int i, j;
int half;
cout << setprecision(13);
count = 0;
count3 = 0;
eunum = 0;
eunm = 0;
cin >> data;
while(cin)
{
half=data/2;
for (i=0; i<data; i++)
{
eunum = eunum++;
euall2 = (pow(eunum,2));
// cout << euall2 << endl;
euall3 = 1/euall2;
// cout << euall3 << endl;
euall4 = 6 * euall3;
// cout << euall4 << endl;
euall = sqrt(euall4);
// cout << euall << endl;
if(half > 1)
{
eunm = eunm + 2;
eual2 = (pow(eunm,2));
// cout << euall2 << endl;
eual3 = 1/eual2;
// cout << euall3 << endl;
eual4 = 6 * eual3;
// cout << euall4 << endl;
eual = sqrt(eual4);
eulerall = eual + euall;
// cout << eual << endl;
// cout << euall << endl;
cout << "Greater" << endl;
}
}
cin >> data;
}
cout << euall << endl;
return 0;
}
|