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 to both inclusive find all the numbers within this range that are DIVISIBLE BY For full credits, your program should take the following approach:
Initialize a variable called counter with value
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 save the number in mcounter and then increase the value of counter by
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
