Added new problems

This commit is contained in:
2022-08-20 16:03:31 -04:00
parent 51447fcbb2
commit a79e60f0fe
22 changed files with 860 additions and 15 deletions

View File

@@ -104,7 +104,7 @@ public class Problem9 extends Problem{
@Override
public String getResult(){
solvedCheck("result");
return String.format("The Pythagorean triplet is %d + %d + %d%nThe numbers' product is %d", a, b, Math.round(c), a * b * Math.round(c));
return String.format("The Pythagorean triplet is %d + %d + %d\nThe numbers' product is %d", a, b, Math.round(c), a * b * Math.round(c));
}
//Returns the length of the first side
public int getSideA(){