Read in an input value for variable valCount. Then, readvalCount floating-point values from input and output the largest ofthe floating-point values read to one decimal place. End with anewline. Note: All floating-point values are of type double.
Ex: If the input is 2 36.3 14.0, then the output is:
36.3
#include <iostream>#include <iomanip>using namespace std;
int main() { int valCount;
/* Your code goes here */
return 0;}
Read in an input value for variable valCount. Then, read valCount floating-point values from input and output the larges
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am