Write a program to find the greatest number among the four numbers.
Answers
Answered by
3
Explanation:
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);
HOPE IT'S HELP'S YOU✌
Similar questions