Back to Freecodecamp

Choose the Correct Data Type in Your C# Code

curriculum/challenges/english/blocks/work-with-variable-data-in-c-sharp-console-applications/647e23188acb466c97ccbefa.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-choose-data-type/" target="_blank" rel="noreferrer">https://learn.microsoft.com/training/modules/csharp-choose-data-type/</a> and complete all the tasks for the "Choose the Correct Data Type in Your C# Code" module. This is required to earn the "Work with Variable Data in C# Console Applications" 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-choose-data-type/" target="_blank" rel="noreferrer">Choose the Correct Data Type in Your C# Code</a> module on Microsoft Learn. Then, answer the question below.

--questions--

--text--

A piece of code must store whole numeric values between negative and positive 1,000,000. Which data type should you choose?

--answers--

float


double


int

--video-solution--

3