mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-12 07:02:42 -04:00
40 lines
1023 B
Markdown
40 lines
1023 B
Markdown
---
|
|
id: 647e239e8acb466c97ccbf05
|
|
title: 'Write Your First C# Code'
|
|
challengeType: 19
|
|
dashedName: write-your-first-c-sharp-code
|
|
---
|
|
|
|
# --description--
|
|
|
|
This challenge will be partially completed on Microsoft's learn platform. Follow these instructions to complete the challenge:
|
|
|
|
1. Go to <a href="https://learn.microsoft.com/en-us/training/modules/csharp-write-first/" target="_blank">https://learn.microsoft.com/en-us/training/modules/csharp-write-first/</a> and complete all the tasks for the "Write Your First C# Code" module. This is required to earn the "Write Your First Code Using C#" trophy.
|
|
1. When you are finished, come back and correctly answer the question below.
|
|
|
|
# --question--
|
|
|
|
## --text--
|
|
|
|
What is the difference between `Console.Write` and `Console.WriteLine`?
|
|
|
|
## --answers--
|
|
|
|
`Console.Write` prints the output on a new line.
|
|
|
|
---
|
|
|
|
`Console.WriteLine` prints the output on a new line.
|
|
|
|
---
|
|
|
|
`Console.WriteLine` appends a new line after the output.
|
|
|
|
---
|
|
|
|
There is no difference.
|
|
|
|
## --video-solution--
|
|
|
|
3
|