A Personalized Echo HackerRank Solution

Hello Programmers, In this post, you will know how to solve the A Personalized Echo HackerRank Solution. This problem is a part of the HackerRank Linux Shell Series.

A Personalized Echo HackerRank Solution
A Personalized Echo HackerRank Solutions

One more thing to add, don’t directly look for the solutions, first try to solve the problems of Hackerrank by yourself. If you find any difficulty after trying several times, then you can look for solutions.

Problem

Write a Bash script which accepts name  as input and displays the greeting “Welcome (name)

Input Format

There is one line of text, name.

Output Format

One line: “Welcome (name)” (quotation marks excluded).
The evaluation will be case-sensitive.

Sample Input 0

Dan

Sample Output 0

Welcome Dan

Sample Input 1

Prashant

Sample Output 1

Welcome Prashant

#!/bin/bash
read name
echo "Welcome $name"

Note: This problem (A Personalized Echo) is generated by HackerRank but the Solution is Provided by  BrokenProgrammers. This tutorial is only for Educational and Learning purposes.

Next: Looping with Numbers HackerRank Solution

Leave a Reply

Your email address will not be published. Required fields are marked *