Iwant to print a matrix in this form

0 20 30 50 ......//These no is stored in an array a[] in a sorted form
0 0 10 30 ......//here 30-20,50-20,.....
0 0 0 20 ......//here 50-30,......
0 0 0 0 .....0

plz write the for loop for this matrix
Last edited on
I am willing to help but it seems I cant understand your matrix.
1.) what is the size of your matrix?

nxm matrix
by: n = number of rows
m = number of columns

2.) what are the elements of your matrix? is there a trend in the values of the elements like "next element is twice the previous".
thanks for ur kind consideration
I got the matrix
Topic archived. No new replies allowed.