Given 50 by 50 matrix.

How to create an algorithm that will populate all cells, below the main diagonal with the value '0'.?
in Other Math Topics by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

I'm not sure what this is for, but here is a routine that would give that effect on a 50x50 matrix.

 

j:= 0;

for r = 1 to 49;

  for c = 2 + j to 50;
    cell[r,c] := 0;
​  next c;
​  j:=j+1;
next r;
by Level 11 User (81.5k points)

Related questions

1 answer
asked Apr 16, 2014 in Other Math Topics by anonymous | 601 views
1 answer
1 answer
asked May 16, 2020 in Calculus Answers by Kurt Muster | 1.1k views
1 answer
asked Oct 9, 2013 in Word Problem Answers by Renuka Thakur | 1.0k views
0 answers
asked Feb 18, 2013 in Algebra 2 Answers by anonymous | 596 views
1 answer
asked Jun 17, 2023 in Other Math Topics by anonymous | 426 views
1 answer
asked Jan 20, 2014 in Word Problem Answers by JDJD | 1.2k views
1 answer
asked Jan 20, 2014 in Calculus Answers by jdjd | 837 views
1 answer
asked Apr 3, 2013 in Algebra 1 Answers by Sanmoy Mukherjee Level 1 User (120 points) | 688 views
1 answer
asked Feb 26, 2013 in Algebra 2 Answers by anonymous | 843 views
1 answer
asked Feb 5, 2013 in Algebra 1 Answers by anonymous | 1.5k views
1 answer
asked Oct 8, 2022 in Other Math Topics by Rawan Level 1 User (120 points) | 502 views
Welcome to MathHomeworkAnswers.org, where students, teachers and math enthusiasts can ask and answer any math question. Get help and answers to any math problem including algebra, trigonometry, geometry, calculus, trigonometry, fractions, solving expression, simplifying expressions and more. Get answers to math questions. Help is always 100% free!
87,516 questions
100,289 answers
2,420 comments
739,788 users