Question: Write a MATLAB program that reads an integer number and prints out if the number is divisible by 3 or not (user entered values are
Write a MATLAB program that reads an integer number and prints out if the number is divisible by 3 or not (user entered values are indicated in bold): Hint: use the function (rem). Output Sample: Enter the number: 6 The number is divisible by 3 Output Sample: Enter the number: 4 The number is NOT divisible by 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
