Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package chapterSix;
- public class IntegerReaders
- {
- public static void main(String[] args)
- {
- int [] n = {3, 8, 4, 2};
- int total = 0;
- for(int i = 0; i<n.length; i++)
- {
- total += n[i];
- System.out.print(total + "\t");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement