All pastes #897936 Raw Edit

Zeug

public text v1 · immutable
·published 2008-02-09 22:58 UTC
rendered paste body
public 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]);
        }
    }
}