What's new

Closed How to trace po sa Multiplication matrix

Status
Not open for further replies.

JYSNPhotography

Eternal Poster
Joined
Jan 16, 2017
Posts
999
Reaction
150
Points
349
Mga kuys and ate patulong naman po pano to itrace tong code na to. Sa multiplication of matrix po yan.

Kasi request po ni instructor na i trace yang following code at isulat sa papel .

Binigyan po kasi kami sample
for (int i=0; i<3 (ewan ko po san kinuha yang 3); i++)
System.out.print(i * 2(ewan ko din po san nakuha yang 2) "\t");
 

Attachments

So the problem is not the tracing (writing on paper) but rather you are having difficulty verifying the results?

If yes, how do you know that program is written correctly? Because if not, then your trace might be correct but the program's output is wrong (this is beyond your control because this is not your program)
 
Honestly the reason why it's hard to trace that program is because the code was written poorly. It might be working but it's not reasonably maintainable. I don't blame you for finding this confusing. Insert tableflip meme here
 
With the code snippet you typed from the above thread output something weird. Can you just give what supposed to be the output? kinda vague question.
 
Status
Not open for further replies.

Similar threads

Back
Top