#include<stdio.h>intmain(){int arr[10];int max =0;for(int i =0; i <sizeof(arr)/sizeof(arr[0]); i++){scanf("%d",&arr[i]);}for(int i =0; i <sizeof(arr)/sizeof(arr[0]); i++){if(arr[i]>max)
max = arr[i];}printf("%d\n", max);return0;}
求10个整数中最大值c语言源代码:#include<stdio.h>int main(){ int arr[10]; int max = 0; for (int i = 0; i < sizeof(arr)/sizeof(arr[0]); i++) { scanf("%d", &arr[i]); } for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); i++) { if (arr[i]>max