Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.WriteLine("which number do you want the square root of");
- string input = Console.ReadLine();
- double number = Convert.ToDouble(input);
- double answer = Math.Sqrt(number);
- Console.WriteLine("the square root of" + " " + input + "is " + answer);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement