Challenge: Personalized Greetings
Opgave
Swipe to start coding
Write a method that accepts a string parameter for a name and prints a greeting message using that name.
- The method must use the provided
nameparameter 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.
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
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Fantastisk!
Completion rate forbedret til 8.33
Challenge: Personalized Greetings
Stryg for at vise menuen
Opgave
Swipe to start coding
Write a method that accepts a string parameter for a name and prints a greeting message using that name.
- The method must use the provided
nameparameter 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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
single