#include<stdio.h>
#include<math.h>
int main()
{
double e = 1.0;
double u = 1.0;
int n = 1;
while (u >= 1.0e-7)
{
u = u / n;
e = e + u;
n = n + 1;
}
printf("e=%f", e);
return 0;
}
#include<stdio.h>
int main()
{
int a=100;
do
{
int b = 0;
int c = 0;
int d = 0;
b = a % 10;
c = a / 10 % 10;
d = a / 100;
if (a ==b * b * b + c * c * c + d * d * d)
{
printf("%d\n", a);
}
a++;
} while (a < 1000);
return 0;
}