Advertisement
Vladimir76

задача 8

Dec 27th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | None | 0 0
  1.             Console.Write("Entering point coordinate - X : ");
  2.             double coordinateX = double.Parse(Console.ReadLine());
  3.             Console.WriteLine();
  4.  
  5.             Console.Write("Entering point coordinate - Y : ");
  6.             double coordinateY = double.Parse(Console.ReadLine());
  7.             Console.WriteLine();
  8.  
  9.                 if ((coordinateX * coordinateX + coordinateY * coordinateY) <= 25)
  10.                 {
  11.                     Console.WriteLine("Point is inside a circle with R = 5");
  12.                 }
  13.                 else
  14.                 {
  15.                     Console.WriteLine("Point is outside of the circle with R = 5");
  16.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement