I am supposed to design a program with a loop that lets the user enter a series of numbers and enter -99 to signal the end. And it also has to display the largest and smallest numbers entered. I chose to say only 3 numbers because I thought it would help with the length of the program. I am getting confused on the If, Then, Else statement alignment and also where to put the -99 to end the program. Everything is starting to run together. I just need some clarification on what I'm doing. I'm doing the very basic, there isn't a specific programming code that's used. By the way, I am Very new at programming but here's what I have so far.
CODE
Display "Enter a series of 3 numbers (or -99 to end)”
Display "Enter first number.”
Input num1
Display "Enter second number.”
Input num2
Display "Enter third number.”
Input num3
If num1>=num2 Then
If num1>=num3 Then
Display "Largest Number is , "num1”
Else
If num2<=num3 Then
Display "Smallest Number is , "num2”
Else
Display "Smallest Number is , "num3”
Else
Display "Largest Number is , "num3”
Display "Smallest Number is , "num2”
Else
If num2>=num3 Then
Display "Largest Number is , "num2”
If num1<=num3 Then
Display "Smallest Number is , "num1”
Else
Display "Smallest Number is , "num3”
Else
Display "Largest Number is , "num3”
Display "Smallest Number is , "num1”
End If
End If