This code segment read the elements for the array M(10) using input box, then calculate the product (the result of multiplying) of elements greater than the number 5. Then print the final result of the multiplication. 1-............ For I 1 To 10 M(I) = InputBox("M") 2-... 3-.. 5-... 6-.. 1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(1) 4- Next 5- End If 6-Print P 1-P = 0 2-1f M(I) > 5 Then 3-P = P * M(I) 4-End If 5-Next 6-Print P 1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End If 5-Next 6-Print P 1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End If 5-Print P 6-Next 1-P = 1 2-lf M(I) <=5 Then 3-P = P * M(I) 4-End If 5-Next 6-Print P O O
This code segment read the elements for the array M(10) using input box, then calculate the product (the result of multiplying) of elements greater than the number 5. Then print the final result of the multiplication. 1-............ For I 1 To 10 M(I) = InputBox("M") 2-... 3-.. 5-... 6-.. 1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(1) 4- Next 5- End If 6-Print P 1-P = 0 2-1f M(I) > 5 Then 3-P = P * M(I) 4-End If 5-Next 6-Print P 1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End If 5-Next 6-Print P 1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End If 5-Print P 6-Next 1-P = 1 2-lf M(I) <=5 Then 3-P = P * M(I) 4-End If 5-Next 6-Print P O O
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.3: Declaring And Processing Two-dimensional Arrays
Problem 7E: (Electrical eng.) a. An engineer has constructed a two-dimensional array of real numbers with three...
Related questions
Question
i need the answer quickly
![This code segment read the
elements for the array M(10) using
input box, then calculate the product
(the result of multiplying) of
elements greater than the number 5.
Then print the final result of the
multiplication.
1-..
For I 1 To 10
M(I) = InputBox("M")
2-..
3-............
4-.
5-..
6-..........
1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(1) 4-
Next 5- End If 6-Print P
1-P = 0 2-1f M(I) > 5 Then 3-P = P * M(I) 4-End
If 5-Next 6-Print P
1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End
If 5-Next 6-Print P
1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End
If 5-Print P 6-Next
1-P = 1 2-lf M(I) <=5 Then 3-P = P * M(I) 4-End
If 5-Next 6-Print P](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F474657d1-9049-4792-b439-c3b24f351cf7%2F51010d43-de4f-4927-b826-2d212f9fd211%2Fhl2b8o_processed.jpeg&w=3840&q=75)
Transcribed Image Text:This code segment read the
elements for the array M(10) using
input box, then calculate the product
(the result of multiplying) of
elements greater than the number 5.
Then print the final result of the
multiplication.
1-..
For I 1 To 10
M(I) = InputBox("M")
2-..
3-............
4-.
5-..
6-..........
1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(1) 4-
Next 5- End If 6-Print P
1-P = 0 2-1f M(I) > 5 Then 3-P = P * M(I) 4-End
If 5-Next 6-Print P
1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End
If 5-Next 6-Print P
1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End
If 5-Print P 6-Next
1-P = 1 2-lf M(I) <=5 Then 3-P = P * M(I) 4-End
If 5-Next 6-Print P
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage