<h3 class='likesectionHead' id='the-weekly-challenge-prolog-solutions'><a id='x1-1000'></a>The Weekly Challenge 324 (Prolog Solutions)</h3>

The examples used here are from the weekly challenge problem statement and demonstrate the working solution. Part 1: 2D Array You are given an array of integers and two integers $r and $c. Write a script to create two dimension array having $r rows and $c columns using the given array. Our solution is short and will be contained in a single file that has the following structure. "ch-1.p" 1 ≡ ⟨…