Hi , I was wondering how to write this program:
Input double numbers until sentinel value of 0.
Output largest negative #, if theres no negative number it would output "no negative number"
for example if the input was:
1.1 -2.2 3.3 -4.4 5.5 -6.6 0
Output: -2.2
Input: 1.1 2.2 3.3 0
Output: "no negative number"
use a loop and an if statement?
As giblit has said, it's as simple as that.