Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
use two for loops, one inside the other. the outer for loop increments when you read a new line from the file. the inner for loop increments as you read the values between the commas. the counter values of the for loops will represent the position in the matrix at any given point in the process.
3rd Jun 2020, 2:52 AM
Nathan Stanley
Nathan Stanley - avatar