Step 1: add 4
Step 2: subtract 1
Step 3: If less than 15 Jump to step 1 and continue from there otherwise proceed to Step 4.
Step 4 : add 3
Step 5: If greater 18 Subtract 2
If you start with a value of 1 and then apply the above. instructions what is the end result a) 11 b) 17 c)8 d)19
Answers
Answered by
0
Answer:
started with 4 my answer is 17
Answered by
0
Answer:
If we start with the value of 1 and then apply the above instructions, the end result is an option(b) which is 17.
Let us start with 1,
1 + 4 = 5 - 1 = 4 which is less than 15 so we have jumped to step 1.
4 + 4 = 8 - 1 = 7 which again is less than 15, we again jump to step 1.
7 + 4 = 11 - 1 = 10 again to step 1
10 + 4 = 14 - 1 = 13 we should again go to step 1.
13 + 4 = 17 - 1 = 16 which is more than 15 so we have to proceed with step 4.
16 + 3 = 19 which is more than 18 so we have to subtract 2 from 19.
Therefore the number becomes 17.
Know more about Addition here:
https://brainly.in/question/39740798
Know more about Subtraction here:
https://brainly.in/question/1774967
Similar questions