![]() |
anyone can solve...what is this maths or .. - Printable Version +- SG Talk (https://sgtalk.net) +-- Forum: SG Talk (https://sgtalk.net/Forum-SG-Talk) +--- Forum: Market Talk (https://sgtalk.net/Forum-Market-Talk) +--- Thread: anyone can solve...what is this maths or .. (/Thread-anyone-can-solve-what-is-this-maths-or) |
anyone can solve...what is this maths or .. - Talent - 10-06-2022 what is the final of count after completing the following instructions step 1: obtain 3 numbers x, y, and count. they are all 0 step 2: if x is lesser than 3, go to step 3, otherwise go to step 8 step 3: if y is lesser than 5, go to step 4, otherwise go to step 6 step 4: increase count by 1, increase y by 1 step 5: go back to step 3 step 6: increase x by 1 set y to o step 7: go back to step 2 step 8: end RE: anyone can solve...what is this maths or .. - Talent - 10-06-2022 solution step 1: obtain 3 numbers x = 0, y = 0, count = 0 step 2: if x is lesser than 3, go to step 3, otherwise go to step 8 step 3: if y is lesser than 5, go to step 4, otherwise go to step 6 step 4: increase count by 1, increase y by 1 count = 0+1, y = 0+1 step 5: go back to step 3 y=0+1+1 count=0+1+1, x=0 step 6: increase x by 1 set y to o y=0 count=0+1+1, x=0+1 step 7: go back to step 2 y=0+1 count=0+1+1+1, x=0+1 step 8: end answer is 12 how to get 12 what maths is this RE: anyone can solve...what is this maths or .. - WhatDoYouThink? - 11-06-2022 c = x * y 15 = 3 * 5 |