求C语言!用switch编写一个计算分段函数的程序!
求C语言!用switch编写一个计算分段函数的程序!
其他人气:710 ℃时间:2020-05-04 13:33:24
优质解答
main() { int a,b,c;//a是输入测试值,b是分段值,c是条件标志 printf("input the value and percentils:\n"); scanf("%d %d",&a,&b); //判断a值 if(a>=b) c=1; else c=0; switch(c) { case 1;//a的函数计算 ;break; d...
我来回答
类似推荐