Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Greeting Generator | Fundamentals of Strings
C# Strings & Text Processing

bookChallenge: Greeting Generator

Tâche

Swipe to start coding

Create a program that generates a personalized greeting using a hardcoded name. The output should be produced in two ways: first, by concatenating the name with a greeting string, and second, by using string interpolation with the name.

  • Return a greeting message that includes the provided name using string concatenation.
  • Return a greeting message that includes the provided name using string interpolation.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 2
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Greeting Generator

Glissez pour afficher le menu

Tâche

Swipe to start coding

Create a program that generates a personalized greeting using a hardcoded name. The output should be produced in two ways: first, by concatenating the name with a greeting string, and second, by using string interpolation with the name.

  • Return a greeting message that includes the provided name using string concatenation.
  • Return a greeting message that includes the provided name using string interpolation.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 2
single

single

some-alt