Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) throws Exception {
- Scanner wczytanie2 = new Scanner(System.in);
- int[] tab1 = new int[5];
- int suma=0;
- for (int e = 0; e < tab1.length; e++) {
- tab1[e] = wczytanie2.nextInt();
- suma+=tab1[e];
- }
- System.out.println(suma);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement