1
2
3
4
5
6
7
8
| #include<stdio.h>
#include<math.h>
int main()
{
printf("%.8lfn", 1+2*sqrt(3)/(5-0.1));
return 0;
} |
#include<stdio.h>
#include<math.h>
int main()
{
printf("%.8lfn", 1+2*sqrt(3)/(5-0.1));
return 0;
}
读者可能还是有一些疑惑:5-0.1的值是什么?“整数-浮点数”是整数还是浮点数?另外,多出来的第2行是做什么用的?