Advertisement
YamaDrama

Untitled

Oct 5th, 2014
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. public class DelenieNa63 {
  2.     public static void main(String [] args){
  3.         int [] mas = {3,4,5,6,8,9,12,36,18,27,42};
  4.         for ( int i = 0;i < mas.length;i++){
  5.             if(mas[i] % 3 == 0 && mas[i] % 6 == 0){
  6.                     System.out.print( mas[i] + ",");
  7.             }  
  8.         }
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement