Computer Science, asked by AyushSharma97061, 11 months ago

Write a program to identify maximum number using parameterized function

Answers

Answered by yajneshsingh01
1

Answer:

Explanation:

void function( int arr[100], int s)

{  int max, i, j;

  max=arr[0];

   for(i=1;i<s;i++)

    { if(max<arr[i])

       { max=arr[i];

        }

     }

    cout<<"\nMAXIMUM NUMBER IS "<<max;

}

Similar questions