Back to Freecodecamp

Write Your First C# Code

curriculum/challenges/english/blocks/write-your-first-code-using-c-sharp/647e239e8acb466c97ccbf05.md

latest1.1 KB
Original Source

--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.
  2. 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.

--questions--

--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