002-003-007

Numeric Input: Age Input Form

Easy

Problem Description

Numeric Input: Age Input Form

In this problem, you will create a program that reads a name (string) and age (integer) from keyboard input and displays them in a profile format to standard output.

Learning Objective: Input integers using nextInt() method

In an age input form, input name and age to display them.
Using nextInt(), you can receive integers from keyboard.

Input

Line 1: Name (string)
Line 2: Age (integer)

Output

================================
       Profile
================================
Name: [name]
Age: [age] years old
================================

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