求各位大佬看下代码哪里错了
int long( int n) { int money=0; if(n<=3) { money=13+1; return money; } else { return money=(13+(n-3)*2.3)*2; } } int main() { int x=12; //int time1=9; printf("乘车费用为:%d"long(x)); return 0; }
int long( int n) { int money=0; if(n<=3) { money=13+1; return money; } else { return money=(13+(n-3)*2.3)*2; } } int main() { int x=12; //int time1=9; printf("乘车费用为:%d"long(x)); return 0; }
2019-02-15
举报