#include void main() { float x=5/2,y=5.0/2; printf("x=%f,y=%
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/06/02 15:22:48
#include void main() { float x=5/2,y=5.0/2; printf("x=%f,y=%f\n",x,y); }
求解释:
求解释:
不知道你具体问什么
#include //包含头文件
void main()//定义main函数
{
float x=5/2,y=5.0/2;//这句用float声明两个单精度浮点型数x,y
printf("x=%f,y=%f\n",x,y);//printf输出x,y的值,打印在屏幕上,%f,占位符
}
再问: 谢了,突然搞懂了。我忘了:当有整数型和浮点型时,取最高级浮点型为标准
#include //包含头文件
void main()//定义main函数
{
float x=5/2,y=5.0/2;//这句用float声明两个单精度浮点型数x,y
printf("x=%f,y=%f\n",x,y);//printf输出x,y的值,打印在屏幕上,%f,占位符
}
再问: 谢了,突然搞懂了。我忘了:当有整数型和浮点型时,取最高级浮点型为标准
#include void main() { float x=5/2,y=5.0/2; printf("x=%f,y=%
#include int main(void) { float x,printf("输入x:\n"); scanf("=
# include void p(int *x,int y){ ++*x; y=y+2; } void main() {
#include "stdio.h"void main(){int x=3,y=5; if (x=y-4) printf
#include void f(int*x,int y) {*x=y+1;y=*x+2;} main() {int a=
#include #include int main(void) { float a,b,c,x,y,z; printf
#include void main() { int x=2,y; switch(x) { case 1:y=x ; b
求讲解输出 #include void main() { int x; printf("%d\n",(x=5*8,x*2
#include void main(){ float F; float c; scanf("%f",&F); c=5(
#include int main() { int x=2,y=3; float i; i=float(x); prin
// void fun( float y ,float x[],) { x[0] = x[1] + x[2]; y =
英语翻译#include void main() { double x = 1,y = 2; double s = 0;