001-005-005
Variable as Value Assignment: Point Copy
Easy
Problem Description
Variable as Value Assignment: Point Copy
Learning Objective: Understand how to copy variable values to another variable
You have two point cards. Input current points for Card A and copy them to Card B. Display points for each card.
Input
Line 1: Current points for Card A (integer, pt)
Output
================================
Point Copy
================================
Card A: [points]pt
Card B: [points]pt (Copy Complete)
================================
```java
## Examples
### Example 1: Copy 500pt
Input:
```java
500
```java
Output:
```java
================================
Point Copy
================================
Card A: 500pt
Card B: 500pt (Copy Complete)
================================
Test Cases
※ Output examples follow programming industry standards
Input:
500
Expected Output:
================================ PointsCopy ================================ CardA: 500 ptss CardB: 500 ptss(CopyComplete) ================================
Input:
1250
Expected Output:
================================ PointsCopy ================================ CardA: 1250 ptss CardB: 1250 ptss(CopyComplete) ================================
Input:
0
Expected Output:
================================ PointsCopy ================================ CardA: 0 ptss CardB: 0 ptss(CopyComplete) ================================
❌ Some tests failed
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 6 free executions remaining
