fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Summation of array elements

    Questions & Answers
    2
    2
    146
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      coolazice last edited by

      Hi, I am looking for help with writing a small custom code to sum some elements (about 25 to 35 elements) of an array with 100 elements.

      I tried the following code but it did not work and I don't know what else to do.
      for (int iArray = ArraySize(array) - 1; iArray >= 0; iArray--) summation += array[iArray];

      The only other choice I have is to sum them manually, that is, sum=var1+var2+...var35. This will work but is clumsy and I can only modify the calculation manually.

      Please help, thanks.

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        This is the field of expertise or roar. I hope he con help you. I'm not good at arrays.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        E
        C
        M
        O
        H
        F
        H
        M

        13
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors