Question: Assign variable minValue with the smallest value of 6 positive floating - point values read from input. Ex: If the input is 1 3 .

Assign variable minValue with the smallest value of 6 positive floating-point values read from input.
Ex: If the input is 13.28.516.42.88.310.2, then the output is:
2.8
Note:
The first value read is the smallest value seen so far.
All floating-point values are of type double. #include
#include
using namespace std;
int main(){
double inVal;
double minValue;
int i;
/* Your code goes here */
cout << minValue << endl;
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!