Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Strings | Gestion des Types de Données
Bases de C#

bookChallenge: Strings

Tâche

Swipe to start coding

Your task is to practice working with string variables in C#.

  • Declare a string variable to store the title of a book. (The Great Gatsby)
  • Declare a string variable to store the author's name. (F. Scott Fitzgerald)
  • Assign a value of your choice to each variable ("The Great Gatsby" and "F. Scott Fitzgerald").
  • Print the book title to the console.
  • Print the author's name to the console.
  • Make sure both values are printed, each on its own line.

Example output:

The Great Gatsby
F. Scott Fitzgerald

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 9
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: Strings

Glissez pour afficher le menu

Tâche

Swipe to start coding

Your task is to practice working with string variables in C#.

  • Declare a string variable to store the title of a book. (The Great Gatsby)
  • Declare a string variable to store the author's name. (F. Scott Fitzgerald)
  • Assign a value of your choice to each variable ("The Great Gatsby" and "F. Scott Fitzgerald").
  • Print the book title to the console.
  • Print the author's name to the console.
  • Make sure both values are printed, each on its own line.

Example output:

The Great Gatsby
F. Scott Fitzgerald

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 2. Chapitre 9
single

single

some-alt