Ask Question
21 September, 18:23

Write a for loop to populate multiplicationtable with the multiples of basevalue from 0 to 5. ex: if basevalue is 2, then multiplicationtable is [0, 2, 4, 6, 8, 10]. (2 x 0 = 0, 2 x 1 = 2, 2 x 2 = 4, 2 x 3 = 6, 2 x 4 = 8, 2 x 5 = 10)

+1
Answers (1)
  1. 21 September, 21:17
    0
    Answer: % multiples of baseValue from 0 to 5 for (i = 0:5) multiplicationTable (1, i+1) = baseValue.*i; end end
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a for loop to populate multiplicationtable with the multiples of basevalue from 0 to 5. ex: if basevalue is 2, then ...” in 📙 Mathematics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers