@EthanHalvorsen/

Assignment38

Java

No description

fork
loading
Files
  • Main.java
  • Counter.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
//Ethan Halvorsen
//Computer science30
//5/26/2019
//Takes a number, prints if the sum of all its divisibles are equal to it.
class Main {
  public static void main(String[] args) {
    System.out.println("\nEnter a number and it will print if it is a perfect number, perfect numbers are numbers where the sum of the divisables is the same as the number.");
    
    Counter test = new Counter();
    test.setter();
    test.calculator();
  }
}