Question: Write a C++ program, step.cpp, that reads a double value from the user and counts from three values below the given number up to
Write a C++ program, step.cpp, that reads a double value from the user and counts from three values below the given number up to three values after the given number. Values are printed out one per line. A sample run of the program might be (input shown in bold): Enter a double value: 45.34 42.34 43.34 44.34 45.34 46.34 47.34 48.34 The output should follow the exact format shown above. The program should work for any double value.
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
c include using namespace std int main double value cout Enter a double value cin value Print three ... View full answer
Get step-by-step solutions from verified subject matter experts
