public int sum(){ Scanner scann=new Scanner(System.in); int sum=0; for(int i=0;i<10;i++){ int st=scann.nextInt(); if(st%2==0){ sum+=st; } } return sum;}