002-003-005

Numeric Input: Bill Splitting

Easy

Problem Description

Numeric Input: Bill Splitting

In this problem, you will create a program that reads the total amount and number of people as integers, calculates the amount per person using integer division, and displays the result to standard output.

Learning Objective: Understand how to receive multiple numeric inputs and perform calculations

Create a program that inputs the total amount and number of people, then calculates and outputs the amount per person.

Input

Line 1: Total amount (integer)
Line 2: Number of people (integer)

Output

Total: [total] yen
People: [people]
Each: [per person] yen
```java

## Example
Input:
```java
3000
4
```java
Output:
```java
Total: 3000 yen
People: 4
Each: 750 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