/home/caleb/ASDV-Java/Exams/PracticeExam2/src/practiceexam2/AgesOf3Daughters.java |
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
package practiceexam2;
import java.util.Scanner;
@author
public class AgesOf3Daughters {
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
int product = 0, ;
while (product != -1) {
System.out.print("Enter the product and then the sum of the ages of the 3 daughters or -1 to quit: ");
product = input.nextInt();
sum = input.nextInt();
if (product % 3 == 0) {
}
else {
System.out.println("Invalid input");
}
}
}
}