mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-26 22:01:30 -04:00
40 lines
1.3 KiB
Markdown
40 lines
1.3 KiB
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 the Microsoft Learn platform. Follow these instructions to complete the challenge:
|
|
|
|
1. Go to <a href="https://learn.microsoft.com/training/modules/csharp-write-first/" target="_blank" rel="noreferrer">https://learn.microsoft.com/training/modules/csharp-write-first/</a> and complete all the tasks in the "Write Your First C# Code" module. This is **required** to earn the "Write Your First Code Using C#" trophy on Microsoft Learn, and qualify for the certification exam.
|
|
1. When you are finished, come back and correctly answer the question below.
|
|
|
|
# --assignment--
|
|
|
|
Complete the <a href="https://learn.microsoft.com/training/modules/csharp-write-first/" target="_blank" rel="noreferrer">Write Your First C# Code</a> module on Microsoft Learn. Then, 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.
|
|
|
|
## --video-solution--
|
|
|
|
3
|