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

bookChallenge: Greeting Generator

Tarefa

Swipe to start coding

Write all your code directly inside the Main method.

  • Declare a string variable with the value Alice.
  • Generate a personalized greeting message by concatenating strings using the + operator, and print it.
  • Generate the same greeting message using string interpolation with the $"..." syntax, and print it.
  • Both messages must be printed on separate lines and must be exactly Hello, Alice! Welcome to the program.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 2
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Suggested prompts:

Can you explain this in simpler terms?

What are the main benefits or drawbacks?

Can you give me a real-world example?

close

bookChallenge: Greeting Generator

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Write all your code directly inside the Main method.

  • Declare a string variable with the value Alice.
  • Generate a personalized greeting message by concatenating strings using the + operator, and print it.
  • Generate the same greeting message using string interpolation with the $"..." syntax, and print it.
  • Both messages must be printed on separate lines and must be exactly Hello, Alice! Welcome to the program.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 2
single

single

some-alt