Question: Given an increasing sequence of integers from 8 8 to 1 6 7 ( both inclusive ) , find all the numbers within this range

Given an increasing sequence of integers from 88 to 167(both inclusive), find all the numbers within this range that are DIVISIBLE BY 17. For full credits, your program should take the following approach:
Initialize a variable called counter with value 1.
Use a FOR loop to go through each number within the range.
In the FOR loop, test each number using the MOD function. If the number is DIVISIBLE BY 17, save the number in m(counter) and then increase the value of counter by 1.
At the end of the FOR loop, display vector m in the command window, showing the numbers found in increasing order.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!