34、計算

#include<stdio.h>
int main(){
    int x=10,y=0;
    //scanf("%d",&i);
    if(x<0){
        y = 4*x+2*x;
    }else if(0<=x && x<10){
        y = x*3-x*2+1;
    }else{
        y = x/5+x/2-3;
    }
    printf("y=%d",y);
}
原文地址:https://www.cnblogs.com/guojiusong/p/8032479.html