最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

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

求告知為什么數(shù)組輸出沒(méi)有值

#include <stdio.h>

int main()

{

? ? int score[10]={67,98,75,63,82,79,81,91,66,84};

? ? int zf;

? ? int max=score[0];

? ? int min=score[0];

? ? int pj;

? ? int i;

? ? for(i=0;i<10;i++)

? ? {

? ? ? ? zf+=score[i];

? ? ?if(score[i]>max){

? ? ? ? ?max=score[i];

? ? ?}?

? ? ?if(score[i]<min)

? ? ?{

? ? ? ? min=score[i];

? ? ?

? ? }

? ? }

? ? for(i=0;i<10;i++)

? ? {

? ? for(int j=9;j>=0;j--)

? ? {

? ? if(score[j]>score[j-1])

? ? {

? ? ? ? int temp;

? ? ? ? ?temp=score[j-1];

? ? ? ? score[j-1]=score[j];

? ? ? ? score[j]=temp;

? ? }

? ? }

? ? }

? ??

? ? pj=zf/10;

? ? printf("考試的總分是%d\n",zf);

? ? printf("考試的最高分是%d\n",max);

? ? printf("考試的最低分是%d\n",min);

? ? printf("考試的平均分是%d\n",pj);

? ? for(i=0;i<10;i++)

? ? {

? ? printf("%.2f ", score[i]);

? ? ? ??

? ? }

? ??

? ? return 0;


正在回答

1 回答

是因?yàn)槟愕拇a報(bào)錯(cuò)了

http://img1.sycdn.imooc.com//5da03cae0001b7fb10120675.jpg

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

舉報(bào)

0/150
提交
取消

求告知為什么數(shù)組輸出沒(méi)有值

我要回答 關(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)