Challenge: Greeting Generator
Task
Swipe to start coding
Write all your code directly inside the Main method.
- Declare a string variable with the value
Alice. - Generate a personalized greeting message by concatenating strings using the
+operator, and print it. - Generate the same greeting message using string interpolation with the
$"..."syntax, and print it. - Both messages must be printed on separate lines and must be exactly
Hello, Alice! Welcome to the program.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Awesome!
Completion rate improved to 4.76
Challenge: Greeting Generator
Swipe to show menu
Task
Swipe to start coding
Write all your code directly inside the Main method.
- Declare a string variable with the value
Alice. - Generate a personalized greeting message by concatenating strings using the
+operator, and print it. - Generate the same greeting message using string interpolation with the
$"..."syntax, and print it. - Both messages must be printed on separate lines and must be exactly
Hello, Alice! Welcome to the program.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 2
single