I use the following to output the answer, is that correct?
Code: Select all
printf("%0.0Lf\n", pow((long double) n, d));
Code: Select all
1 0
1 10
1 24
1 25
2 0
2 10
2 24
2 25
3 0
3 10
3 24
3 25
4 0
4 10
4 24
4 25
5 0
5 10
5 24
5 25
6 0
6 10
6 24
6 25
7 0
7 10
7 24
7 25
8 0
8 10
8 24
8 25
9 0
9 10
9 24
9 25
10 0
10 10
10 24
10 25
0 0