akash vasiya

akash vasiya

  • NA
  • 7
  • 560

Create a program and write a method called "GreetPlayer" that takes a

Mar 1 2023 4:23 PM

Create a program and write a method called "GreetPlayer" that takes a string parameter called "name" and prints a greeting message that says "Welcome [name]".

A hint of one possible solution:
First you need to create a string variable in main to store the name value. And then pass it to GreetPlayer-method when calling it. And inside that GreetPlayer-method you need to create a new string variable that stores the information you are going to print.


Answers (2)