Print Name and Age

Easy
0/40
Average time to solve is 5m
58 upvotes
Asked in company
Barclays

Problem statement

The task is to print the Name and Age entered by the user

Detailed explanation ( Input/output format, Notes, Images )
Input Format:
Line 1: A String
Line 2: An Integer
Output Format:
Print String and Integer
Sample Input:
Ram
22
Sample Output:
My name is Ram and my age is 22.
Explanation for Sample Input:
The String entered by the user is Ram
The integer entered by the user is 22
So the answer for the given test case is:
My Name is Ram and my age is 22.
Approaches (1)
Approach:

The idea is to take the name and age from the user and print the name and age.

Time Complexity
Space Complexity
Code Solution
(100% EXP penalty)
Print Name and Age
Full screen
Console