001-006-005

Variable Declaration Placement: Temporary Result Storage

Easy

Problem Description

Variable Declaration Placement: Temporary Result Storage

Learning Objective: Understand appropriate variable declaration placement

Input two integers, store addition and multiplication results in separate variables, then output.

Input

Line 1: Integer a
Line 2: Integer b

Output

Sum: [a+b value]
Product: [a*b value]
```java

## Example
Input:
```java
3
4
```java
Output:
```java
Sum: 7
Product: 12

Test Cases

※ Output examples follow programming industry standards

Input:
3
4
Expected Output:
Sum: 7
Product: 12
Input:
10
5
Expected Output:
Sum: 15
Product: 50
Input:
0
7
Expected Output:
Sum: 7
Product: 0
❌ Some tests failed
❌ エラー発生

Your Solution

Current Mode: My Code
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Write your code here

sc.close();
}
}
0 B / 5 MB

You have 6 free executions remaining