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

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

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

#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 回答

是因為你的代碼報錯了

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

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

舉報

0/150
提交
取消

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

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

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

幫助反饋 APP下載

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

公眾號

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