Question: Three doubles are read from input as variables distance1 to distance3. Declare a vector of doubles named biking Distance and initialize the elements with the
Three doubles are read from input as variables distance1 to distance3. Declare a vector of doubles named biking Distance and initialize the elements with the variables distance1 to distance3 in the order the input doubles are read. Ex: If the input is 18.21 10.09 6.97, then the output is: 18.21 10.09 6.97 1 #include 2 #include 3 using namespace std; 555BEN FOG L9SA 5 int main() { 10 11 cin >> distance1; 12 cin >> distance2; 13 cin >> distance3; 14 double distance1; double distance2; double distance3; unsigned int i; 15 V* Your code goes here */ 16 17 for (i 0; i < bikingDistance.size(); ++i) { 4 2 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
