Question: Display the odd numbers from 1 up to some upper limit, where those numbers are not also divisible by 3. Also count how many

Display the odd numbers from 1 up to some upper limit, where those numbers are not also divisible by 3. Also count how many there are and display the count at the end. Here are three examples of running the program: > run Enter limit: 10 157 There were: 3 > run Enter limit: 20 1 5 7 11 13 17 19 There were: 7 > run Enter limit: 40 1 5 7 11 13 17 19 23 25 29 31 35 37 There were: 13
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
