为x任意赋值,计算y=(1+x2)/(x2+4x1/2+10)的值。编写程序代码,并运行出结果。
#include <stdio.h> #include <math.h> int main() { double x,y; scanf("%lf",&x); y = (1+x*x)/(x*x+4*sqrt(x)+10); printf("%lf",y); return 0; }