Answer :
1. Initialize a variable, let's call it `maximum`, to store the largest integer. Set it to a very small value, like negative infinity.
2. Start a loop that continues until a negative integer is read. Inside the loop, do the following:
- Read an integer from the input.
- Check if the integer is negative. If it is, break out of the loop.
- Check if the integer is greater than the current maximum. If it is, update the value of `maximum` to the new integer.
3. After the loop ends, return the value of `maximum`.
Here's the code implementation in Python:
```python
def findmaximum():
maximum = float('-inf') # Initialize the maximum to negative infinity
while True:
num = int(input("Enter an integer: ")) # Read an integer from input
if num < 0:
break # Break out of the loop if a negative integer is read
if num > maximum:
maximum = num # Update the maximum if the current number is greater
return maximum
```
To know more about Python visit:
https://brainly.com/question/30391554
#SPJ11