Ask Question
11 October, 11:31

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)

+3
Answers (1)
  1. 11 October, 11:55
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers