#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0

    Solved


    Solved
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,696
    Rep Power
    480
    if(C>50) C=2*C;

    if C is bigger than 50, which it is because it's 225, double it.



    if(C>200) C=C/2;

    if C is bigger than 200, which it is, then halve it.


    Leaving C at 225.
    [code]Code tags[/code] are essential for python code and Makefiles!
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0
    Things work!
    Thanks again

    Comments on this post

    • ptr2void disagrees : Don't delete your code! That is rude.

IMN logo majestic logo threadwatch logo seochat tools logo