习题2-2阶梯电价#include <stdio.h> int main() { float a,cost; printf("请输入本月用电量\n"); scanf("%f",&a); if(a<=50) cost=0.53*a; else cost=0.53*50+0.58*(a-50); printf("本月你需要缴纳的费用为: %.2f",cost); return 0; }