In: Advanced Math
1)
At the end of the following algorithm segment, what value is in variable n?
n:= 31
WHILE ( n is prime)
n:= n -2
END WHILE
2) Prove that there is no greatest negative real number using contradiction or contraposition.


The First Problem is a simple iteration of the while loop.
The Second Problem has been solved using proof by contradiction.