anyone can solve...what is this maths or ..
#1

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
Reply
#2

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
Reply
#3

c = x * y
15 = 3 * 5
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)