Skip to content

Commit 098f33c

Browse files
authored
out of his mouth went a sharp two-edged sword
And he had in his right hand seven stars: and out of his mouth went a sharp two-edged sword: and his countenance was as the sun shineth in his strength (Revelation 1:16)
1 parent 75935a7 commit 098f33c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

task05/task0530/Solution.java

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
//And he had in his right hand seven stars: and out of his mouth went a sharp two-edged sword:
3+
//and his countenance was as the sun shineth in his strength (Revelation 1:16)
4+
5+
package com.javarush.task.task05.task0530;
6+
7+
import java.io.*;
8+
9+
/*
10+
Шеф, что-то не пашет
11+
*/
12+
13+
public class Solution {
14+
public static void main(String[] args) throws Exception {
15+
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
16+
int a = Integer.parseInt(reader.readLine());
17+
int b = Integer.parseInt(reader.readLine());
18+
19+
int sum = a + b;
20+
System.out.println("Sum = " + sum);
21+
}
22+
}
23+
24+
/*
25+
Шеф, что-то не пашет
26+
Задача: Программа считывает два числа с клавиатуры и выводит их сумму на экран.
27+
28+
29+
Требования:
30+
1. Программа должна считывать числа с клавиатуры.
31+
2. В классе должен быть только один метод main.
32+
3. Программа должна выводить строку, которая начинается на "Sum = ".
33+
4. Программа должна выводить строку, которая заканчивается суммой введенных чисел.
34+
*/

0 commit comments

Comments
 (0)