輸入10個數(shù)到數(shù)組中?
#include <stdio.h>int main(void){int buf[10],i, max, min, sum; for(i = 0; i < 10; i++){printf("input value %d\n", i);scanf("%d", &buf[i]);}for(i = 0; i < 10; i++){if(buf[i] > buf[i+1]){max = buf[i];}if(buf[i] < buf[i+1]){min = buf[i];}sum += buf[i];}
}上一篇c盤pla文件夾是什么
下一篇怎么共號王者榮耀