Press Ctrl-Shift-P inside your repl and then "Open Shell".
This will open a normal shell inside your repl directory, where you can run your program as you would on a regular command prompt, with command line arguments.
There might be a better way to do this, but this is the only way I know.
Sorry for the late reply, and keep coding on repl.it!
I don't know about any repl.it specific features, but you can always use ANSI escape sequences. For more info, read this: https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences.
Hope this helped :)
Awesome! Really impressive.
Yes, but next time please link a repl instead of copy-pasting the code.
Here are the problems with your code:
1. When you called COMPOSITE in the main function, you did not provide any arguments.
2. COMPOSITE should be static (public static int COMPOSITE(..)).
3. Instead of System.our.println("Enter a Number."), you should write System.out.println("Enter a Number.")
In general, if you receive arguments from COMPOSITE there is no reason to set them again in the code, or ask for input - either change COMPOSITE to be with no arguments or don't set it in the code.
Hope this helped, and sorry for the delay :)
For loops in Python can indeed be confusing, especially if you come from a different language.
I think a good source to learn from is the Python documentation:
Nice! I like it.
I'm glad you're using Python, it's a wonderful language and I'm sure you will continue to enjoy it ;)
I'm assuming this is Python code.
Basically you're looping through every i in range(1, n+1) which means every i from 1 to n+1 not including n+1. Since n=5, this means every i from 1 to 5 (including).
Every iteration of the loop you add i to the sum, which means sum = 1 + 2 + 3 + 4 + 5 = 15 as you stated.
Hope this helps, and keep coding on repl.it!
The collaboration mode is currently in beta, here's how you can enable it:
Go to https://repl.it/account , Roles, and enable Explorer.
Once this is enabled choose any repl, and there should be a 'Live Coding' button on the left sidebar. Click on it, and click on 'Start Session'.
You should see a link, which you can share with your friends so that they can collaborate with you.
Please note that your friends need to have a repl.it account, but they don't have to enable explorer mode.
Enjoy collaborating on repl.it!
Wooow cool! I would suggest to have some button on the screen to change the music, because it's a little inconvenient to change it through the element directly.
I don't understand, what programming language or repl are you referring to?
Please be more specific :)
Can you please link the code/repl you are referring to?
@0801goble Ah yeah, are you getting this error?
"Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4lmunp8n/turtle/
You are using pip version 9.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command."
Cool concept, however the equation itself is incorrect.
Solutions to a quadratic equation are
(-b + sqrt(d))/(2a), and (-b - sqrt(d))/(2a).
Can you please link the repl you are referring to?