Challenge: Personalized Greetings
Aufgabe
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
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ösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 2
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 8.33
Challenge: Personalized Greetings
Swipe um das Menü anzuzeigen
Aufgabe
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
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ösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 2
single