Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Personalized Greetings | Functions with Different Signatures
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C# Methods and Modular Thinking

bookChallenge: Personalized Greetings

Task

Swipe to start coding

Write a method GreetUser that accepts a string parameter for a name and prints a greeting message using that name.

  • The method must use the provided name parameter to create a personalized greeting message.
  • The greeting message must include the name within the text.
  • The greeting message must be printed using a single output statement.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 2
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: Personalized Greetings

Swipe to show menu

Task

Swipe to start coding

Write a method GreetUser that accepts a string parameter for a name and prints a greeting message using that name.

  • The method must use the provided name parameter to create a personalized greeting message.
  • The greeting message must include the name within the text.
  • The greeting message must be printed using a single output statement.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 2
single

single

some-alt