Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Greeting Generator | Fundamentals of Strings
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C# Strings and Text Processing

bookChallenge: Greeting Generator

Tehtävä

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.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 2
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

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

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 2
single

single

some-alt