001-001-007

Variable Declaration: Self-Introduction Program

Easy

Problem Description

Variable Declaration: Self-Introduction Program

Learning Objective: Understand variables as "containers" for data, and learn the basics of keyboard input and output

Create a program that displays a nice self-introduction card when you enter your name and age. Use variables to temporarily store information and use it for display.

Input

Line 1: Your name (string)
Line 2: Your age (integer)

Output

============================
   Self-Introduction Card
============================
Name: [name]
Age: [age] years old
============================

Examples

Example 1: Taro's Introduction

Input:

Taro
20

Output:

============================
   Self-Introduction Card
============================
Name: Taro
Age: 20 years old
============================

Example 2: Hanako's Introduction

Input:

Hanako
18

Output:

============================
   Self-Introduction Card
============================
Name: Hanako
Age: 18 years old
============================

Example 3: Minimum Value Introduction

Input:

A
0

Output:

============================
   Self-Introduction Card
============================
Name: A
Age: 0 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