🔒 Closed How to trace po sa Multiplication matrix

Status
Not open for further replies.

JYSNPhotography

Eternal Poster
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

  • Screenshot_20190423-213949.png
    Screenshot_20190423-213949.png
    55.9 KB · Views: 15
  • Screenshot_20190423-213956.png
    Screenshot_20190423-213956.png
    53.4 KB · Views: 14
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.

About this Thread

  • 4
    Replies
  • 530
    Views
  • 4
    Participants
Last reply from:
aa1012

Online now

Members online
1,034
Guests online
739
Total visitors
1,773

Forum statistics

Threads
2,275,585
Posts
28,964,275
Members
1,231,875
Latest member
cjpeligro123
Back
Top