c program to find min and max value among 4 numbers
Answers
Answered by
1
Answer:
int length = sizeof array / sizeof array[0]; for (int n = 0; n < length; n++) { if(array[n]>max) { max = array[i]; } if(array[n]<min) { min = array[i]; } } printf("Maximum Number:\t%d\n",max); printf("Minimum Number:\t%d\n",min)
Similar questions