Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- public class Main {
- public static void main(String[] args) throws IOException {
- BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
- int x = 0;
- for(int i = 0; i < 40; i++) {
- int a = Integer.parseInt(read.readLine());
- x += a;
- }
- System.out.println(x);
- read.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement