Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 21 to 40 of 58
  1. #21
    Banned.

    Join Date
    Apr 2007
    Posts
    1,243
    BG Level
    6

    Does that mean if n divided by f does not equal 0, I keep going?

  2. #22
    THOU THOU THOU THOU THOU THOU THOU THOU
    Avatar of Fury.

    Join Date
    Jan 2006
    Posts
    5,584
    BG Level
    8
    FFXIV Character
    Shiroe Blackrose
    FFXIV Server
    Diabolos
    FFXI Server
    Carbuncle

    No, it means if n divided by f has a remainder that is not 0, then you keep going.

    9 mod 3 = 0, which fails (9 / 3 = 3 R 0).
    10 mod 3 = 1, which passes (10 / 3 = 3 R 1).

  3. #23
    Canadian Fury
    MANITOBA IS NOT A REAL PLACE

    Join Date
    Jun 2008
    Posts
    1,089
    BG Level
    6
    FFXI Server
    Valefor

    i don't even know what <> means

  4. #24
    THOU THOU THOU THOU THOU THOU THOU THOU
    Avatar of Fury.

    Join Date
    Jan 2006
    Posts
    5,584
    BG Level
    8
    FFXIV Character
    Shiroe Blackrose
    FFXIV Server
    Diabolos
    FFXI Server
    Carbuncle

    Quote Originally Posted by Shiroikage View Post
    i don't even know what <> means
    It's not equal. Depends on the language's nomenclature. Is this pseudocode or some actual language?

  5. #25
    Banned.

    Join Date
    Apr 2007
    Posts
    1,243
    BG Level
    6

    Quote Originally Posted by The Blackrose View Post
    No, it means if n divided by f has a remainder that is not 0, then you keep going.

    9 mod 3 = 0, which fails (9 / 3 = 3 R 0).
    10 mod 3 = 1, which passes (10 / 3 = 3 R 1).
    That is the dumbest thing I have ever heard why is this class so stupid

  6. #26
    Banned.

    Join Date
    Apr 2007
    Posts
    1,243
    BG Level
    6

    Quote Originally Posted by The Blackrose View Post
    It's not equal. Depends on the language's nomenclature. Is this pseudocode or some actual language?
    I don't fucking know

  7. #27
    Canadian Fury
    MANITOBA IS NOT A REAL PLACE

    Join Date
    Jun 2008
    Posts
    1,089
    BG Level
    6
    FFXI Server
    Valefor

    Quote Originally Posted by The Blackrose View Post
    It's not equal. Depends on the language's nomenclature. Is this pseudocode or some actual language?
    that's what i was guessing, but wasn't sure

  8. #28
    i'm awesome.
    Join Date
    May 2005
    Posts
    9,218
    BG Level
    8

    I write code that evolves, fucking genes and shit. My code is so smart it solves problems on its own just by evolving the correct solution to an np problem. That state space is huge motherfucker, but my code doesn't give a fuck and just breeds until the best individuals make up the majority of the generation. Stay awake in class and maybe you will write cool shit like me some day.

  9. #29
    Banned.

    Join Date
    Apr 2007
    Posts
    1,243
    BG Level
    6

    I can't stay awake in class because I wake up for school at 12 two days out of the week and sleep in until at least 3 PM every other day and then I have to get up for this class at like 6 AM and it's a 4 hour class so I'm just completely fucking out of it and if I do somehow manage to pay attention for an hour or two he doesn't actually start going over new stuff until the end of class and his bullshit is so tiring that I'm dead by that point

  10. #30
    Banned.

    Join Date
    Apr 2007
    Posts
    1,243
    BG Level
    6

    Does this look right at all? I have never done my homework before and I have no clue what I'm doing...

    http://i73.photobucket.com/albums/i2...homas/HELP.jpg

  11. #31
    Banned.

    Join Date
    Apr 2007
    Posts
    1,243
    BG Level
    6

    I'm not sure if the line number is supposed to go back and forth like that, maybe it's just supposed to be 1, 2, 3, 4, 5, 6, 7, etc.

  12. #32
    Banned.

    Join Date
    Apr 2007
    Posts
    1,243
    BG Level
    6

    And I think I might have to do something for line 4 and I probably handled line 5 wrong

  13. #33
    Banned.

    Join Date
    Apr 2007
    Posts
    1,243
    BG Level
    6

    POST might be in the wrong column or maybe it's not supposed to be there at all and is there supposed to be a line 7

  14. #34
    Banned.

    Join Date
    Apr 2007
    Posts
    1,243
    BG Level
    6

    See this is why I have to sleep through class because I have to stay up all night to ask my friend to go over this in the morning

  15. #35
    Silly Hat Connoisseur
    Join Date
    Sep 2006
    Posts
    1,119
    BG Level
    6

    lol I could write it in python but nfi how to do it in excel-alikes XD

  16. #36
    Users Awaiting Email Confirmation
    Join Date
    Jul 2005
    Posts
    5,667
    BG Level
    8

    you have to change the code until you get a result that is correct

  17. #37
    Banned.

    Join Date
    Apr 2007
    Posts
    1,243
    BG Level
    6

    It's just simple tracing you dumb bitch

  18. #38
    Silly Hat Connoisseur
    Join Date
    Sep 2006
    Posts
    1,119
    BG Level
    6

    Code:
    #!/usr/bin/python
    
    n = 91
    f = 2
    
    while (f*f<n) and (n%f != 0):
        print f, n
        f+=1
    prints

    Code:
    2 91
    3 91
    4 91
    5 91
    6 91
    is that what you wanted? but i mean that's it in python

  19. #39
    Silly Hat Connoisseur
    Join Date
    Sep 2006
    Posts
    1,119
    BG Level
    6

    Quote Originally Posted by Krye View Post
    It's just simple tracing you dumb bitch
    lmao

  20. #40
    Banned.

    Join Date
    Apr 2007
    Posts
    1,243
    BG Level
    6

    HELL YEAH I DID MY HOMEWORK RIGHT WHAT THE FUCK ARE YOU BITCHES GONNA DO ABOUT IT NOT SHIT THAT'S WHAT

Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. I'm so sorry, but I have to do this
    By Daahan in forum Ragnell Middle Finger Memorial Forum
    Replies: 4
    Last Post: 2009-12-25, 13:38
  2. I Don't Think I'm Going To Do My Homework
    By Krye in forum Ragnell Middle Finger Memorial Forum
    Replies: 14
    Last Post: 2009-11-06, 17:03