All pastes #10922 Raw Edit

Someone

public cpp v1 · immutable
#10922 ·published 2005-05-04 18:21 UTC
rendered paste body
#include <iostream>#include <math.h>using namespace std;int main(){    double a=1, b=2, c=3, n;    cout << "put in your N value" << endl;    cin >> n;    while(pow(a,n)+pow(b,n)!=pow(c,n))    {        c++;        while(c==a || c==b)         c++;        if(c>=100)        {         c=1;         b++;        }        if(b>=100)        {         b=1;         a++;        }        if(a>=100)        {         cout << "Doesn't seem solvable" << endl;         return 1;        }    }    cout << "Answer is " << a << "^" << n << "+" << b << "^" << n << "=" << c <<"^" << n << endl;        return 0;}