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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

10 plus 10 recurring

  • 17-10-2018 4:22pm
    #1
    Registered Users, Registered Users 2 Posts: 4,498 ✭✭✭


    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, Registered Users 2 Posts: 4,498 ✭✭✭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, Registered Users 2 Posts: 1,595 ✭✭✭MathsManiac


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


This discussion has been closed.
Advertisement