Back to Freecodecamp

Perform Basic Operations on Numbers in C#

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

latest1.0 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-basic-operations/" target="_blank" rel="noreferrer">https://learn.microsoft.com/training/modules/csharp-basic-operations/</a> and complete all the tasks for the "Perform Basic Operations on Numbers in C#" 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-basic-operations/" target="_blank" rel="noreferrer">Perform Basic Operations on Numbers in C#</a> module on Microsoft Learn. Then, answer the question below.

--questions--

--text--

What is the value of the following result?

csharp
int result = 3 + 1 * 5 / 2;

--answers--

10


5


6

--video-solution--

2