实验4电

#include<stdio.h>
int main(void)
{
    double x,y;
    
    printf("Enter x:");
    scanf("%lf",&x);
    if(x<0){
        printf("输入错误");
    }
    
    else if(x<50){
        y=0.53*x;
    }
    
    else(x>50);{
        y=0.58*x;
    }
    
    printf("y=%lf\n",y);

    return 0;
}

posted @ 2013-10-24 09:43  涅墨西斯  阅读(109)  评论(0编辑  收藏  举报