第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

大佬們請幫幫忙,先謝謝了

#include <stdio.h>

float cost(float s,int t)

{

? ? float prince;

? ? int first=13+1;

? ? if(0<=s && s<=3)

? ? {

? ? return first;

? ? }

? ? else

? ? {

? ? if(0<=t && t<5 || t==23)

? ? {printf=2.3+2.3*0.2;}

? ? else

? ? {

? ? float cost=first+price*(s-3);

? ? return cost;

? ? }

}

int main()

{

? ? float money=cost(12,9)+cost(12,18);

? ? printf("小明每天打車的總費用%2f元",money);

? ? return 0;

}

大佬們幫忙看一看,找一下錯誤,運行失敗,先謝謝了

正在回答

1 回答

  1. 第4行prince應(yīng)改為price,與后面對應(yīng).

  2. 第25行printf應(yīng)改為price,與后面對應(yīng)

  3. 第26行的else(第二個else)應(yīng)再添加執(zhí)行塊代碼:{price=2.3;},將多余的{去掉

  4. 第46行的printf里的逗號是中文符號,應(yīng)改為英文,

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

大佬們請幫幫忙,先謝謝了

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號