Question: Use cin to read floating-point numbers from input as height readings until three positive heights are read. Output each positive height read. End each output

Use cin to read floating-point numbers from input as height readings until three positive heights are read. Output each positive height read. End each output with a newline. Ex: If the input is 10.02.08.027.49.811.9, then the output is: 27.4 9.8 11.9 Note: Use fixed and setprecision(1) to set one digit after the decimal point
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
