001-002-004
Variable Assignment: Shopping Receipt
Easy
Problem Description
variable Assignment: Shopping Receipt
In this problem, you will create a program that reads a product name (String) and price (integer), assigns them to variables, and displays them in receipt format to standard output.
Learning Objective: Understand how to assign values to variables
Create a program that inputs a product name and price, then outputs them in receipt format.
Input
Line 1: Product name (string)
Line 2: Price (integer)
Output
Item: [product name]
Price: [price] yen
```java
## Example
Input:
```java
Apple
150
```java
Output:
```java
Item: Apple
Price: 150 yen
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up