From c58a5175bfa5f2086a9bdb6fc61831b6b6952b23 Mon Sep 17 00:00:00 2001 From: "Mark Wiemer (MSFT)" <80539004+mwiemer-microsoft@users.noreply.github.com> Date: Wed, 17 Jun 2026 16:47:06 -0700 Subject: [PATCH 1/2] Correct case for 'pi' in area calculation challenge --- docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md b/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md index 41a12101cd0ba..bfd437ee9985d 100644 --- a/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md +++ b/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md @@ -251,7 +251,7 @@ You saw the basic numeric types in C#: integers and doubles. There's one other t ***Challenge*** -Now that you know the different numeric types, write code that calculates the area of a circle whose radius is 2.50 centimeters. Remember that the area of a circle is the radius squared multiplied by PI. One hint: the runtime contains a constant for PI, that you can use for that value. , like all constants declared in the `System.Math` namespace, is a `double` value. For that reason, you should use `double` instead of `decimal` values for this challenge. +Now that you know the different numeric types, write code that calculates the area of a circle whose radius is 2.50 centimeters. Remember that the area of a circle is the radius squared multiplied by pi. One hint: the runtime contains a constant for pi, that you can use for that value. , like all constants declared in the `System.Math` namespace, is a `double` value. For that reason, you should use `double` instead of `decimal` values for this challenge. You should get an answer between 19 and 20. From cb2efa170a51446dd0bd62c94981f1cefcf9353e Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Thu, 18 Jun 2026 09:03:36 -0400 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md b/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md index bfd437ee9985d..d721134fc2808 100644 --- a/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md +++ b/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md @@ -251,7 +251,7 @@ You saw the basic numeric types in C#: integers and doubles. There's one other t ***Challenge*** -Now that you know the different numeric types, write code that calculates the area of a circle whose radius is 2.50 centimeters. Remember that the area of a circle is the radius squared multiplied by pi. One hint: the runtime contains a constant for pi, that you can use for that value. , like all constants declared in the `System.Math` namespace, is a `double` value. For that reason, you should use `double` instead of `decimal` values for this challenge. +Now that you know the different numeric types, write code that calculates the area of a circle whose radius is 2.50 centimeters. Remember that the area of a circle is the radius squared multiplied by pi. One hint: the runtime contains a constant for pi: . Because `Math.PI` is a `double` value, you should use `double` instead of `decimal` values for this challenge. You should get an answer between 19 and 20.