Design an algorithm that accept an input string, then display it with a preceding text "Hello".
Answers
Answered by
7
Answer:
Algorithm:
STEP 1: START.
STEP 2: Accept the string.
STEP 3: Add "Hello " before the entered string.
STEP 4: Display the new String.
STEP 5: STOP.
A sample Python code for the same -
s=input("Enter your name? ")
print("Hello",s)
See the attachment for output.
Attachments:
Similar questions