7-6 阶梯电价 (15分) #include<stdio.h> int main() { int x; double t,f; scanf("%d",&x); if(x<=50&&x>0) { t=x*0.53; printf("cost = %.2lf",t); }else if(x<0){ printf("Invalid Value!"); }else{ f=26.5+(x-50)*0.58; printf("cost = %.2lf",f); } return 0; }