subject
Mathematics, 20.02.2020 19:42 duke4527

The counter in a for or while loop can be given explicit increment: for i =m:k:n to advance the counter i by k each time. In this problem we will evaluate the product of the first 10 odd numbers 1 � 3 � 5 � . . . � 19 in two ways:

(a) Write a script file that evaluates the product of the first 10 odd numbers using a for loop.

(b) Evaluate the product of the first 10 odd numbers using a single MATLAB command. Use the MATLAB command prod.

Thanks a lot!!!

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 16:10
Abox contains 1 plain pencil and 4 pens. a second box contains 5 color pencils and 5 crayons. one item from each box is chosen at random. what is the probability that a plain pencil from the first box and a color pencil from the second box are selected? write your answer as a fraction in simplest form.
Answers: 1
question
Mathematics, 21.06.2019 17:00
Antonia and carla have an equivalant percentage of green marbles in their bags of marbles. antonia has 4 green marbles and 16 total matbles. if carla has 10 green marbles , how many total marbles does carla have
Answers: 1
question
Mathematics, 21.06.2019 18:30
Can someone check if i did this correct. it’s number 4 if you’re wondering.
Answers: 1
question
Mathematics, 21.06.2019 22:50
Which of the following is closest to 32.9 x 7.5? a: 232 b: 259 c: 220 d: 265
Answers: 2
You know the right answer?
The counter in a for or while loop can be given explicit increment: for i =m:k:n to advance the coun...
Questions
question
Mathematics, 20.05.2021 08:20
question
Mathematics, 20.05.2021 08:20
question
Mathematics, 20.05.2021 08:20
question
Computers and Technology, 20.05.2021 08:20
question
Mathematics, 20.05.2021 08:20
question
Mathematics, 20.05.2021 08:20
Questions on the website: 13722367