4条回答 默认 最新
threenewbee 2015-01-18 12:17关注sacanf不能识别expf(1),你输入它等于输入0
你需要输入2.71828#include <stdio.h> #include <math.h> int main() { double i; scanf_s("%lf", &i); double x = logf(i); printf("%lf", x); }2.71828
0.999999Press any key to continue . . .本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报

