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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

#include <stdio.h> int main() { int i=12,sum,n=2; if(i<=3) { sum=13; printf("%d",sum); } sum=(i-3)*2.3+sum; for(n=2;n>=1;n--) { sum +=1;} printf("總費(fèi)用%f",sum); return 0; }

為什么算出來(lái)是0

正在回答

2 回答

#include <stdio.h>

int main()

{

? ? float kilometre=2.3;

? ? int k=13;

? ? int a=1;

? ? int time=9;

? ? float money;

? ? {

? ? ? ? if(time>=23&&time<5){

? ? ? ? ? ? money=k+(kilometre+kilometre*0.2)+a;

? ? ? ? ? ? printf("小明打車一共花%f",money);

? ? ? ? }else{

? ? ? ? ? ? money=k+kilometre+a;

? ? ? ? printf("小明打車一共花%f",money);

? ? ? ? }

? ? ? ??

? ? ? ? if(kilometre<=3){

? ? ? ? printf("小明打車一共花%f",money);

? ? ? ? }else{

? ? ? ? ? ? ?money=k+kilometre+a;

? ? ? ? ? ? printf("小明打車一共花%f",money);

? ? ? ? }

? ? ? ??

? ? }

? ? return 0;

}


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

運(yùn)行失敗

hello.c: In function 'main':

hello.c:6:14: error: stray '\357' in program

? ? ?int tax=1;

? ? ? ? ? ? ? ^

hello.c:6:15: error: stray '\274' in program

? ? ?int tax=1;

? ? ? ? ? ? ? ?^

hello.c:6:16: error: stray '\233' in program

? ? ?int tax=1;

? ? ? ? ? ? ? ? ^

hello.c:7:5: error: expected ',' or ';' before 'int'

? ? ?int time;

? ? ?^~~

hello.c:7:13: error: stray '\357' in program

? ? ?int time;

? ? ? ? ? ? ?^

hello.c:7:14: error: stray '\274' in program

? ? ?int time;

? ? ? ? ? ? ? ^

hello.c:7:15: error: stray '\233' in program

? ? ?int time;

? ? ? ? ? ? ? ?^

hello.c:10:12: error: 'time' undeclared (first use in this function)

? ? ? ? ?if(time>=23&&time<5){

? ? ? ? ? ? ^~~~

hello.c:10:12: note: each undeclared identifier is reported only once for each function it appears in

hello.c:11:13: error: 'money' undeclared (first use in this function)

? ? ? ? ? ? ?money=start(kilometre+kilometre*0.2)+tax;

? ? ? ? ? ? ?^~~~~

hello.c:11:19: error: called object 'start' is not a function or function pointer

? ? ? ? ? ? ?money=start(kilometre+kilometre*0.2)+tax;

? ? ? ? ? ? ? ? ? ?^~~~~

hello.c:5:9: note: declared here

? ? ?int start=13;

? ? ? ? ?^~~~~

hello.c:13:13: error: expected '}' before 'else'

? ? ? ? ? ? ?else{

? ? ? ? ? ? ?^~~~

hello.c: At top level:

hello.c:26:5: error: expected identifier or '(' before 'return'

? ? ?return 0;

? ? ?^~~~~~

hello.c:27:1: error: expected identifier or '(' before '}' token

?}

?^


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

舉報(bào)

0/150
提交
取消

#include <stdio.h> int main() { int i=12,sum,n=2; if(i<=3) { sum=13; printf("%d",sum); } sum=(i-3)*2.3+sum; for(n=2;n>=1;n--) { sum +=1;} printf("總費(fèi)用%f",sum); return 0; }

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

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

幫助反饋 APP下載

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

公眾號(hào)

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