Zeug
public text v1 · immutablepublic class PiffPaff {
public static void PiffPaff(int [] a){
int mod3;
int mod5;
for (var i = 0; i < a.length; ++i) {
if ((a[i] % 3) == 0 AND (a[i] % 5) == 0)
System.out.println("PiffPaff");
else if ((a[i] % 3) == 0)
System.out.println("Piff");
else if ((a[i] % 5) == 0)
System.out.println("Paff");
else
System.out.println(a[i]);
}
}
}