1 个回答
yuanlai
回答于 2024-07-20
已采纳
提问:用switch语句编程实现下列函数关系,请填空
用switch语句编程实现下列函数关系,请填空。当x<0y=-1当x=0y=0当x>0y=1#include<stdio.h>intmain(){intx,y;【31】;switch(x<0){case1:【32】;break;case0:switch(【33】){case1:y=0;【34】;【35】:y=1;}printf(“输入x的值为%d,对应y值为%f。”,x,y);}
网友回答:
完整的程序及填空参考:

我来回答
相关问题
1
回答
游戏王卡组推荐
单机游戏
567 浏览