008-004-003

Multiple Arguments: Calculator Method

Easy

Problem Description

Multiple Arguments: Calculator method

In this problem, you will create a program that defines a method receiving three integers as arguments, calculates their sum, and displays the result to standard output.

Learning Objective: Understand how to define and call methods with multiple arguments

Create a method that receives three integers and calculates their sum. Learn how to pass multiple arguments separated by commas.

Input

Line 1: First number (integer)
Line 2: Second number (integer)
Line 3: Third number (integer)

Output

Sum: [total]

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