Computer Science, asked by nidhisri351, 8 months ago

write program that uses input to promt a user for their name and then welcomes them. Note that input will pop up a dialog box. Enter Sarah in the pop-up box when you are promted so your output will match the desired output name= input(" Enter your name") print(" Howdy")

Answers

Answered by pp7733001502
1

Explanation:

Explanation:

Program:

name = input ("Enter name :")

print("Welcome",name)

According to the expectation of the question, we must allow the user to key-in the input.

So, use "input" statement. The below statement will prompt the user to text the name.

name= input("Enter name:")

Then we need to welcome the person with the name. "Print" statement is used to display text or content to the user.

Print("Welcome",name) - This statement would concatenate the welcome message along the name which is nothing but the input given by the user.

Answered by pavithranatarajan855
0

Answer:

var person = prompt("Enter your name");

alert(person+" Howdy");

Explanation:

First line prompt the prompt box for asking name.

second line give person name with howdy as welcome in alert.

Hope it is helpful...

Similar questions