// Sample Solution
using System;
namespace LowestNumber
{
class Program
{
static void Main(string[] args)
{
// Starting variables
int numberOne = 12932;
int numberTwo = -2828472;
// Use built-in methods and save to variable
double numberOneSqrt = Math.Floor(Math.Sqrt(numberOne));
// Use built-in methods and save to variable
double numberTwoSqrt = Math.Floor(Math.Sqrt(Math.Abs(numberTwo)));
// Print the lowest number
Console.WriteLine(Math.Min(numberOneSqrt,numberTwoSqrt));
}
}
}
No comments:
Post a Comment