Square root
Find the positive side length of a square from its area. Multiplying the answer by itself gives the original area.
Math.Sqrt
Simple example
Find the square root of nine.
Start9
Result3
using System;
Console.WriteLine(Math.Sqrt(9.0));
3
Advertisements
Everyday examples
A square garden covers 36 square metres. How long is one side?
Start36
Result6
using System;
Console.WriteLine(Math.Sqrt(36.0));
6
A square mosaic has 81 tiles arranged in equal rows and columns. How many tiles are in one row?
Start81
Result9
using System;
Console.WriteLine(Math.Sqrt(81.0));
9
A square stage covers 49 square metres. How long is the front edge?
Start49
Result7
using System;
Console.WriteLine(Math.Sqrt(49.0));
7
Run the example
dotnet new console --output Lesson
cp Program.cs Lesson/Program.cs
dotnet run --project Lesson