#include<stdio.h> int main() { float x,y; printf("输入x的值:"); scanf("%f",&x); if(20>x>=0) printf("\n\ny=%f",y=x+10); else if(20<=x<50) printf("\n\ny=%f",y=30); else if(50<=x<60) printf("\n\ny=%f",y=30-3*(x-50)); printf("\n\n是否继续?\t是:选<y>;\t否:选<n>!\n\n请选择:\n"); return 0;
onemoo
相关分类