• only_lurking@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I think it would be much better to write it in another language, but here’s another way to do the second one (this is on Visual Basic):

    Dim n as long
    Dim product as long
    Product = 1
    
    For n = 1 to 4
    Product = product * 2 * n
    Next n
    
    • can@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Yeah I don’t really think that helps anyone that didn’t understand the above example, sorry.

      • Kecessa@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Yeah they might as well have written it in assembly… Some people are just not very good at understanding that others don’t have their knowledge/ease of understanding certain things, especially people who are very good at what they do, the ability to simplify is as much a skill as understanding complex concepts!