This program inputs ten integers into an array (a) and then create a new array (b) that represent reverse order of array (a).

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question
i need the answer quickly
This program inputs ten integers
into an array (a) and then create a
new array (b) that represent
reverse order of array (a).
For i = 1 To 10
1-.
Next
2-.........
3..***************
Next
1-a(i) = InputBox("a") 2-For i = 10 To 1 Step
-1 3-b(i) = a(11 - i)
O
O
*************
O
O
1-a(i) = InputBox("a") 2-For i = 10 To 1 Step
-1 3-b(i) = a(10 - i)
1-a(i) = InputBox("a") 2-For i = 10 To 1 Step
-1 3-b(i) = a(11+i)
1-b(i) = InputBox("b") 2-For i = 10 To 1 Step
-1 3-b(i) = a(11 - i)
1-a(i) = InputBox("a") 2-For i = 10 To 1 Step
-1 3-b(i) = a(i-11)
1-a(i) = InputBox("a") 2-For i = 10 To 1 Step
13-b(i) = a(11 - i)
Transcribed Image Text:This program inputs ten integers into an array (a) and then create a new array (b) that represent reverse order of array (a). For i = 1 To 10 1-. Next 2-......... 3..*************** Next 1-a(i) = InputBox("a") 2-For i = 10 To 1 Step -1 3-b(i) = a(11 - i) O O ************* O O 1-a(i) = InputBox("a") 2-For i = 10 To 1 Step -1 3-b(i) = a(10 - i) 1-a(i) = InputBox("a") 2-For i = 10 To 1 Step -1 3-b(i) = a(11+i) 1-b(i) = InputBox("b") 2-For i = 10 To 1 Step -1 3-b(i) = a(11 - i) 1-a(i) = InputBox("a") 2-For i = 10 To 1 Step -1 3-b(i) = a(i-11) 1-a(i) = InputBox("a") 2-For i = 10 To 1 Step 13-b(i) = a(11 - i)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage