Science Challenge # 4 - Can you solve this computer logic?

in #steemstem6 years ago (edited)

Weekends are really good for relaxing and enjoying instead of writing heavy posts. Don't you think?

(Credit: here)

To add on to the lazy Sunday, I have created this science challenge to soften the Saturdays also. Interested in the challenge? Why not check out if you have the knowledge to win the prize.  

Can you solve this computer logic?

A - $initialValue = 10, 3 loops

B - $initialValue = 9, 2 loops

C - $initialValue = 12, 3 loops

D - The program will crash

This piece of coding has been written by me using PHP language. Basically the logic would have been the same in any programming language so don't fear the syntax!


How to play?

  1. UPVOTE this post
  2. Just write a comment with either A B C or D with no other words as the result is done through automation.
  3. There are no other rules!

The prize

The liquid reward of this post will be distributed among all the winners.

Next week when announcing the winners, I will also provide the explanation which option was the correct answer.

Enjoy your lazy Saturday :)


Hurry up!! Only 12 hours left before the lotto game ends by playing on this post: Steemit Lotto Weekly # 15 - Minimum Pot Size 54 STEEM!!!!

Good luck to everyone  ? 


Don't forget to check if you are a winner every Sunday at around 19 00 (GMT)

Want more games? Why not check out @killerwhale for crypto guessing games!

(adatpted from 3D Lines Steemit Logo Reveal)


No more entries! Results have been announced :)

Sort:  

C

C

C

Thanks for your support

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.034
BTC 66077.75
ETH 3167.77
USDT 1.00
SBD 4.01