Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class apples{
- public static void main(String[] args){
- int bucky[]={21,16,86,21,3};
- int sum=0;
- for(int counter=0;counter<bucky.length;counter++){
- sum+=bucky[counter];
- }
- System.out.println("The sum of theze numbers is " +sum);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement