public class PiffPaff { public static void PiffPaff(int [] a){ int mod; for (int i = 1; i < a.length; i++){ mod = a[i] % 5; if (mod == 0){ mod = a[i] % 3; if (mod == 0){ System.out.println ("PiffPaff"); }else{ System.out.println ("Paff"); } } else { mod = a[i] % 3; if (mod == 0){ System.out.println ("Piff"); }else{ System.out.println (a[i]);} } } } }// PiffPaff }//class