Person Greeting

Programming Interview Easy 8 views
Back to Questions
Next Rectangle Area Easy N

Problem Description

Name and age are provided. Create class Person with method greet() that returns 'Hi , you are '. Output greet().

Input Format

One line: name age.

Output Format

One line greeting.

Sample Test Case

Input:
Ravi 21
Output:
Hi Ravi, you are 21

Constraints

Name has no spaces.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next