003-001-006

Arithmetic Operators: Points Addition

Easy

Problem Description

Arithmetic Operators: Points Addition

In this problem, you will create a program that adds two integer values using the addition operator (+) and displays last month's points, this month's points, and the total in the specified format to standard output.

Learning Objective: Learn to add numbers using the addition operator (+) to calculate cumulative points

Calculate total points on a point card. Input last month's and this month's points to display the total.

Input

Line 1: Last month's points (integer)
Line 2: This month's points (integer)

Output

Last month: [points1] pt
This month: [points2] pt
Total: [points1+points2] pt

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