Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Create a console application that calculates and prints the square root of the number 12345.
- using System;
- namespace SquareRoot
- {
- class Program
- {
- static void Main()
- {
- Console.Write("Enter number: ");
- int number = Convert.ToInt32(Console.ReadLine());
- Console.Write("The squareroot of " + number + " is: ");
- Console.WriteLine(Math.Sqrt(number).ToString());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment