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

@@ -81,7 +81,7 @@ public class Problem25 extends Problem{
@Override
public String getResult(){
solvedCheck("result");
return String.format("The first Fibonacci number with %d digits is %s%nIts index is %d", NUM_DIGITS, number.toString(), index);
return String.format("The first Fibonacci number with %d digits is %s\nIts index is %d", NUM_DIGITS, number.toString(), index);
}
//Returns the Fibonacci number asked for
public BigInteger getNumber(){