Question: How do I code this using Coral Language? Jump to level 1 Complete the PrintArray function to iterate over each element in userVals. Each iteration

How do I code this using Coral Language?
Jump to level 1
Complete the PrintArray function to iterate over each element in userVals. Each iteration should put the element to output. Then,
put "_" to output.
Ex: If userVals's elements are 247, then output is:
2_4_7_
Function PrintArray(integer array(?) userVals) returns Variables
integer i
// Your solution goes here. Modify as needed
i =0
Function Main() returns nothing
integer array(3) userNums
integer i
for i =0; i userNums.size; i = i +1
userNums[i]= Get next input
PrintArray(userNums)
How do I code this using Coral Language? Jump to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!