Quantcast
Channel: Coding Forums
Viewing all articles
Browse latest Browse all 1635

SENTINEL CONTROL LOOP WHEN DEALING WITH TWO ARRAYS

$
0
0
Hello All,
I am having trouble controlling an array, can anybody please help.


Write a program to take two numerical lists of the same length ended by a
sentinel value and store the lists in array x any y, each of which
has 20 elements. Let n be the actual number of data values in each
list. Store the product of corresponing elements x and y in a third
array, z, also of size 20. Display the arrays x, y, and z in a three-column
table. Then compute and display the square root of the sum of...

Read more

Viewing all articles
Browse latest Browse all 1635

Latest Images

Trending Articles



Latest Images