All pastes #897952 Raw Edit

Zeug

public text v1 · immutable
·published 2008-02-09 23:12 UTC
rendered paste body
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