Question: c++ Jump to level 1 Read integers from input until an integer is read that is not in the range 40 to 5 , both
c++
Jump to level 1 Read integers from input until an integer is read that is not in the range 40 to 5 , both inclusive. For each integer read that is in the given range, output the integer followed by " is kept". Then, output the integer read that causes the reading to stop followed by " is filtered off". End each output with a newline. Ex: If the input is 3738314634, then the output is: 37 is kept 38 is kept 31 is kept 46 is filtered off \begin{tabular}{r|r} 1 & \#include 40 to 5 , both inclusive. If an integer is in the given range, the integer is output, followed by " is kept". Otherwise, the while loop terminates and the final output is the last integer read from input, followed by " is filtered off". Each output ends with a newline. Ex: For input 3738314634 : - 37 is in the given range, so "-37 is kept" is output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
