Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

10 plus 10 recurring

Options
  • 17-10-2018 5:22pm
    #1
    Registered Users Posts: 4,497 ✭✭✭


    How do I figure out what 10 plus 10 is, recurring ( say fifty times)?


Comments

  • Posts: 0 [Deleted User]


    10 + 10 = 20
    10 x 2 = 20

    10 + 10 + 10 = 30
    10 x 3 = 30

    10 x 50 =....


  • Registered Users Posts: 4,497 ✭✭✭auspicious


    Thanks partyjungle.
    But I actually asked it completely wrong. Sorry about that.
    I meant;
    initial value 10

    plus 10 = 20
    plus 20 = 40
    plus 30 = 70
    etc.


  • Posts: 0 [Deleted User]


    Do you know any programming?

    I wrote a small snippet of java to do this.

    [HTML]public class MyClass {
    public static void main(String args[]) {
    int x = 10;
    for (int i = 1; i < 51; i++){
    x = x + (i * 10);
    System.out.println("Sum of x = " + x);
    }

    System.out.println("Total sum of x = " + x);
    }
    }[/HTML]

    Input it here to see it run: https://www.jdoodle.com/online-java-compiler


  • Registered Users Posts: 1,595 ✭✭✭MathsManiac


    Please don't ask the same question in two different threads!


This discussion has been closed.
Advertisement