Groovy web console

subscribe to the feed Subscribe
to this
site

ProofIT_HelloWorld_Arithmetic

Published 5 months ago by Jurgis Sipols
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
/*
    Write a "Hello World" script that prints three lines.
       * In the first line "Hello World";
       * In the next line: the sum of two integers multiplied by two and the integers themselves;
       * In the last line: the sum of different two integers multiplied by two and the integers themselves.
    Note that it must easy to change input integers, meaning we should be able to change integers once and the script output would change accordingly.
*/