Full Question
<em>Write a program that takes a first name as the input, and outputs a welcome message to that name. Ex: If the input is Pat, the output is: Hello Pat, and welcome to CS Online!</em>
Answer:
Python
nname = input("What is your name: ")
print("Hello "+nname+" , and welcome to CS Online!")
Explanation:
The programming ls not stated; However, I'll answer using Python
Python (See bold texts for line by line explanation)
This line prompts the user for input
nname = input("What is your name: ")
This line prints the welcome message
<em>print("Hello "+nname+" , and welcome to CS Online!")</em>