Commit c37dfd89 authored by ash.brett's avatar ash.brett

Update AssessmentPartOne.java

parent 9e0d8cbf
public class AssessmentPartOne {
public int biggestOfThree(int num1, int num2, int num3)
......@@ -27,7 +26,7 @@ public class AssessmentPartOne {
}
else
{
return num2;//Added A semiColone here
return num2;//Added A semicolon here
}
}
}
......@@ -65,11 +64,12 @@ public class AssessmentPartOne {
return sumOfNumbers;
}
//This section of the program states while start is less than end-1 it will increment the start value. It will then add start to the sumOfNumbers, It then returns this value.
//It continues to run through this section of code until the start becomes equal to end-1
//It continues to run through this section of code until the start becomes equal to the end value -1
while(start < end-1) {
++start;
sumOfNumbers+=start;
}
return sumOfNumbers;
}
......
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