Challenge: Greeting Generator
Opgave
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 alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 4.76
Challenge: Greeting Generator
Stryg for at vise menuen
Opgave
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 alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
single