004-001-005

Array Variable Declaration: Score Array Creation

Easy

Problem Description

Array Variable Declaration: Score Array Creation

Learning Objective: Learn how to declare and initialize array variables

Create a program that inputs three scores, stores them in an array, and displays the array elements.

Input

Line 1: Score 1 (integer)
Line 2: Score 2 (integer)
Line 3: Score 3 (integer)

Output

Score 0: [score1]
Score 1: [score2]
Score 2: [score3]

Test Cases

※ Output examples follow programming industry standards

Input:
85
90
78
Expected Output:
Score 0: 85
Score 1: 90
Score 2: 78
Input:
100
100
100
Expected Output:
Score 0: 100
Score 1: 100
Score 2: 100
❌ 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