成人AV在线无码|婷婷五月激情色,|伊人加勒比二三四区|国产一区激情都市|亚洲AV无码电影|日av韩av无码|天堂在线亚洲Av|无码一区二区影院|成人无码毛片AV|超碰在线看中文字幕

python輸入一組數(shù)求最大值 從鍵盤上輸入10個(gè)整數(shù),求最大值和最小值,用while方法做,在python里做?

從鍵盤上輸入10個(gè)整數(shù),求最大值和最小值,用while方法做,在python里做?include <stdio.h>int main(){ int min=0,max=0int i=

從鍵盤上輸入10個(gè)整數(shù),求最大值和最小值,用while方法做,在python里做?

include <stdio.h>int main(){ int min=0,max=0int i=0,j=0,temp=0int a[10] while(i<10) {//循環(huán)輸入10個(gè)數(shù) printf("Enter a data:") scanf("%d",&a[i]) i }i=0while(i<10){ while(j<(10-i)) { if(a[i]>a[j]) { temp=a[i] a[i]=a[j] a[j]=temp } j //該while循環(huán)內(nèi)完成后最大的一個(gè)數(shù)會(huì)變?yōu)閍[10] } i //該while循環(huán)內(nèi)完成后數(shù)組內(nèi)的數(shù)是從小到大一次排好的,現(xiàn)在a[0]最小,a[10]最大 }printf("max is %dn",a[0])printf("min is %dn",a[10])}純手打,望~~~~有問題,可追問~