Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Ex33{
- public static void main(String args[]){
- int numAr[] = {6,7,8,9};
- for(int k = 0 ; k < numAr.length ; k++){
- if(numAr[k] % 2 == 0)
- numAr[k] = 10;
- }
- for(int k = 0 ; k < numAr.length ; k++)
- System.out.print(numAr[k]);
- } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement