mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
551 B
14 lines
551 B
5 months ago
|
public class ExerciseRunner {
|
||
|
public static void main(String[] args) {
|
||
|
PerfectNumber perfectNumber = new PerfectNumber();
|
||
|
|
||
|
int number1 = 6;
|
||
|
System.out.println("Is " + number1 + " a perfect number? " + perfectNumber.isPerfectNumber(number1));
|
||
|
|
||
|
int number2 = 28;
|
||
|
System.out.println("Is " + number2 + " a perfect number? " + perfectNumber.isPerfectNumber(number2));
|
||
|
|
||
|
int number3 = 12;
|
||
|
System.out.println("Is " + number3 + " a perfect number? " + perfectNumber.isPerfectNumber(number3));
|
||
|
}
|
||
|
}
|