1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

So whose good at math...or programming

Discussion in 'BlackHat Lounge' started by TehEpidemick, Jun 14, 2013.

  1. TehEpidemick

    TehEpidemick BANNED BANNED

    Joined:
    Oct 31, 2011
    Messages:
    778
    Likes Received:
    181
    Lets just say hypothetically, I was writing a program and I ran into this scenario.

    Im starting at 10 and adding 210 so i need

    If 10 * 22 = 220, the difference between 220 and 10 is 210,

    so 10 * what number gives me the 220 + 210?
     
  2. GiorgioB

    GiorgioB Supreme Member

    Joined:
    Feb 28, 2012
    Messages:
    1,288
    Likes Received:
    1,318
    Occupation:
    Making money
    Location:
    Touching the Sky
    well, apparently i'm not good at maths or programming or even english, cos I don't understand antyhig of what you're saying... you mean 10*X = 210+220? in that case you can do a simple X = (210+220)/10 which gives you 43... but I'm guessing that's too easy, i must be missing something
     
    • Thanks Thanks x 1
  3. Repulsor

    Repulsor Power Member

    Joined:
    Jun 11, 2013
    Messages:
    712
    Likes Received:
    267
    Location:
    PHP Scripting ;)
    I didnt actually understand what you were trying to convey, but I am curious, how something like this is going to be in a program unless its somekind of puzzle or something.
     
  4. TehEpidemick

    TehEpidemick BANNED BANNED

    Joined:
    Oct 31, 2011
    Messages:
    778
    Likes Received:
    181
    Thats the right answer, its always the easy things that totally slip your mind. I was just thinking of it the wrong way.