Login to ask a question from Arrays

Write a program in C to find the maximum and minimum element in an array.

Write a program in C to find the maximum and minimum element in an array.

#include 

void main()
{
      int arr1[100];
      int i, mx, mn, n;
      printf("\n\nFind maximum and minimum element in an array :\n");
                                            printf("--------------------------------------------------\n");	
       printf("Input the number of elements to be stored in the array :");
       fflush(stdout);
       scanf("%d",&n);
       printf("Input %d elements in the array :\n",n);
       for(i=0;i....
Show More
Previous Question Next Question
🔗

Similar Questions

From Arrays · C programming

View All
WhatsApp