Write a SUB PROCEDURE LoadSquared() that receives an empty array of integers and fills each element with the square of its subscript (index). If the array to pass to the procedure is called intTest6Example, after the call LoadSquared(intTest6Example), intTest6Example(3) will contain 9, for example.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
Write a SUB PROCEDURE LoadSquared()
that receives an empty array of integers and
fills each element with the square of its
subscript (index).
If the array to pass to the procedure is called
intTest6Example, after the call
LoadSquared(intTest6Example),
intTest6Example(3) will contain 9, for
example.
Transcribed Image Text:Write a SUB PROCEDURE LoadSquared() that receives an empty array of integers and fills each element with the square of its subscript (index). If the array to pass to the procedure is called intTest6Example, after the call LoadSquared(intTest6Example), intTest6Example(3) will contain 9, for example.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
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