Challenge: Strings
Tarea
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
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 9
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Genial!
Completion tasa mejorada a 1.25
Challenge: Strings
Desliza para mostrar el menú
Tarea
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
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 9
single