mirror of
https://bitbucket.org/Mattrixwv/projecteulerjava.git
synced 2025-12-06 17:13:58 -05:00
Update test coverage
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
//ProjectEulerJava/src/main/java/mattrixwv/ProjectEuler/Problems/Problem6.java
|
||||
//Matthew Ellison
|
||||
// Created: 03-01-19
|
||||
//Modified: 08-20-22
|
||||
//Modified: 06-27-23
|
||||
//Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.
|
||||
//Unless otherwise listed all non-standard includes are my own creation and available from https://bibucket.org/Mattrixwv/JavaClasses
|
||||
/*
|
||||
Copyright (C) 2022 Matthew Ellison
|
||||
Copyright (C) 2023 Matthew Ellison
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
@@ -29,8 +29,8 @@ public class Problem6 extends Problem{
|
||||
private static final int START_NUM = 1; //The first number that needs to be counted
|
||||
private static final int END_NUM = 100; //The last number that needs to be counted
|
||||
//Instance variables
|
||||
private long sumOfSquares; //Holds the sum of the squares of all the numbers
|
||||
private long squareOfSum; //Holds the square of the sum of all the numbers
|
||||
protected long sumOfSquares; //Holds the sum of the squares of all the numbers
|
||||
protected long squareOfSum; //Holds the square of the sum of all the numbers
|
||||
|
||||
//Functions
|
||||
//Constructor
|
||||
|
||||
Reference in New Issue
Block a user