002-003-008
Multiple Input Values and Calculation
Easy
Problem Description
Multiple Input Values and Calculation
Learning Objective: Understand how to input multiple values using Scanner and use them in calculations
Overview
Create a program that takes three integers as input and calculates their sum and average.
Specifications
- Input three integers separated by spaces on one line
- Calculate and output the sum
- Calculate and output the average including decimal places
Input Format
10 20 30
Output Format
Sum: 60
Average: 20.0
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
