Commit 157e8e78 authored by thomas.unsworth's avatar thomas.unsworth

Update assessment.java

parent dc557b77
public class assessment {
public int biggestOfThree(int num1, int num2, int num3)
......@@ -45,15 +44,16 @@ public class assessment {
int sumOfSquares = 0;
if(start < 0 || end < 0 || ((end - start) <= 1))
{
return -1;
}
else
{
for(int i = start +1;i < end; i++)
{
sumOfSquares += i;
}
}
else
{
return -1;
}
return sumOfSquares;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment