Advertisement
Guest User

beep bop

a guest
Feb 27th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. Console.WriteLine("which number do you want the square root of");
  2.             string input = Console.ReadLine();
  3.             double number = Convert.ToDouble(input);
  4.             double answer = Math.Sqrt(number);
  5.             Console.WriteLine("the square root of" + " " + input + "is "  + answer);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement