C++ : Storing an Array into 2-D array in the following format :
A ***function*** in C++ which accepts an integer array and its size arguments and assign the elements into a two dimensional array of integers in following format..

Example 1 : 
If the array is : **1  2  3  4  5**.

Then, the resultant 2-D array should be : 

    1 2 3 4 5
    1 2 3 4 0
    1 2 3 0 0
    1 2 0 0 0
    1 0 0 0 0

Example 2 : 
If the array is : **1  2  3**.

Then, the resultant 2-D array should be : 

    1 2 3
    1 2 0
    1 0 0

and similar arrays.

PLEASE HELPPP !!!!

C++ : Storing an Array into 2-D array in the following format :
===

A ***function*** in C++ which accepts an integer array and its size arguments and assign the elements into a two dimensional array of integers in following format..

Example 1 : 
If the array is : **1  2  3  4  5**.

Then, the resultant 2-D array should be : 

    1 2 3 4 5
    1 2 3 4 0
    1 2 3 0 0
    1 2 0 0 0
    1 0 0 0 0

Example 2 : 
If the array is : **1  2  3**.

Then, the resultant 2-D array should be : 

    1 2 3
    1 2 0
    1 0 0

and similar arrays.

PLEASE HELPPP !!!!
