Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int count = 0;
- int tbl[] = {10,2,10,3,10,4,10,10};
- for(int i : tbl){
- if( i == 10){
- count = count + 1;
- }
- }
- System.out.println(count);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement