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
Normal case
Input:
Yuki 25
Expected Output:
Name: Yuki Age: 25
Normal case
Input:
Bob 30
Expected Output:
Name: Bob Age: 30
Your Solution
Current Mode:● My Code
99
1
2
3
4
5
6
7
8
9
10
›
⌄
⌄
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 10 free executions remaining
