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