#include
int main() { float x; double y; x=.789; y=.789; printf("x=%f\n",x); printf("y=%f\n",y); }
输出 x=. y=.
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/226668.html原文链接:https://javaforall.net
实型变量的定义和应用includeintma floatx doubley x 789 y 789 printf x f n x printf y f n y 输出 x y 分析 nbsp nbsp nbsp nbsp 从程序运行结果可以看出 x 的值并不等于赋予的初值 而 y 的值等于赋予的
#include
int main() { float x; double y; x=.789; y=.789; printf("x=%f\n",x); printf("y=%f\n",y); }
输出 x=. y=.
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/226668.html原文链接:https://javaforall.net