Advertisement
G_Burlakova

SquareRoot

Mar 23rd, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. class CalculateSquareRoot
  8. {
  9.     static void Main(string[] args)
  10.     {
  11.         int number = 12345;
  12.         double numberSquareRoot = Math.Sqrt(number);
  13.         double numberSqrtRounded = Math.Round(numberSquareRoot, 2);
  14.         Console.WriteLine(numberSqrtRounded);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement