Computer Science, asked by diamondkids321, 5 months ago

please answer this question

write a program to find the largest of 4 numbers​

Answers

Answered by atrija10
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);

hope it helps you...

Similar questions