
Ahmed H. answered 03/06/21
Experienced Physics & Math Tutor | with a Physics Ph.D.
m = [1 2 3;4 5 6]
iseven = rem(m, 2) == 0
Rachel H.
asked 02/22/21How do I write a program taking two numbers a and b from user, where a<b. Use a for loop to count and print the numbers of odds, evens, and multiples of three between a and b (including a and b) to the screen.
There was a hint that said to use the rem key.
Ahmed H. answered 03/06/21
Experienced Physics & Math Tutor | with a Physics Ph.D.
m = [1 2 3;4 5 6]
iseven = rem(m, 2) == 0
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.