Search⌘ K
AI Features

Challenge: Make a Routine

Explore how to create a Ruby routine that collects a person’s and their parents’ names, then prints the data. Understand passing parameters and input validation to handle user input effectively.

Problem statement

Write a small program that asks for a person’s first and last names, followed by their parents’ first and last names. The ...