#include<stdio.h>
main()
{
int x,y;
printf(“please input the X:\n”);
scanf("%d",&x);
if(x<1)
printf("%d",x);
else if(x>=1&&x<10)
printf("%d",2x-1);
else
printf("%d",3x-1);
}
6.有如下函数: x (x<1) y= 2x-1 (1<=x<10) 3x-1 (x>=10)
最新推荐文章于 2023-01-08 09:55:12 发布