001-005-002

Variable Output: Profile Display

Easy

Problem Description

In this problem, you will create a program that declares multiple variables of different types (such as integers and strings) and displays them combined to standard output.

Outputting Multiple Variables

You can combine and output variables of different types.

Test Cases

※ Output examples follow programming industry standards

Input:
Yuki
25
Expected Output:
Name: Yuki
Age: 25
Input:
Bob
30
Expected Output:
Name: Bob
Age: 30
Input:
Z
0
Expected Output:
Name: Z
Age: 0
Input:
0
0
Expected Output:
Name: 0
Age: 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 9 free executions remaining