Math, asked by Nimish6439, 9 months ago

array contains n test cases how to find max number in that

Answers

Answered by Anonymous
3

Answer:

\huge\underline\mathfrak\blue{ANSWER}

1. Create an integer array of capacity 50.

2. Take size of the array as input from users.

3. Using for loop, take array element as input from users and insert into the array.

4. After inserting all the elements of the array, consider the very first element of array to be the largest.

5. Run a for loop, from 1 to arraySize-1, extracting array element one by one and comparing it to the largest element.

6. If largest element is smaller than the comparing element of array, then the largest element is updated to current element of array.

7. At the end, the largest element will hold the actual largest value present in the array.

Answered by lenin100
2

Answer:

see attachment for ans

Attachments:
Similar questions