Hello,
I recently made some code for a simple guess my number program. However, if you guess it wrong, it keeps on printing "Sorry, guess again." What did I do wrong?
void main()
{
printLine ("Please write the meaning of life, the universe, and everything");
int var1 = 42;
int var2 = 0;
Right.
var2 changes when the user inputs a value through the function readInt. I don't know at the moment how to stop the loop from repeating itself. var1 does not have to change, I could use randomInt for that, but I want to keep this as simple as possible right now.