I am inexperienced.EDIT: in your for command, shouldn't you use <= instead of == ? It's the continue condition, not ending condition you should use iirc
I am inexperienced.EDIT2: why do you return 1 instead of the actual area ?
Its not my design. For my coursework I was given a design and told to create the code for it and to test it.Yours doesn't make any sense though. If you want the user to be able to keep entering squares you need to put the user input stuff inside the for loop. Then you can set the initial value of FurtherSquares to one, and ask them on the first time through the loop what the value should be, update the value, and have a boolean telling whether you asked already so that you don't ask again.
Bookmarks