Challenge: Greeting Generator
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 2
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 4.76
Challenge: Greeting Generator
Svep för att visa menyn
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 2
single