#include"iostream"
using namespace std;
#include "cmath"
int main()
{
double e= 1.0;
double i = 1.0;
int n = 1;
while (i >= e - 7)
{
i = i / n;
e = e + i;
n++;
}
cout << "e=" << e << "(n="<<n<<")" << endl;
return 0;
}
#include"iostream"
using namespace std;
int main()
{
int i, j, k;
for (int n = 100; n < 1000;n++)
{
i = n / 100;
j = (n / 10) % 10;
k = n % 10;
if (n == i * i * i + k * k * k + j * j * j)
printf("%d\n",n);
}
return 0;
}