/**
* 几何方面:点是否在圆内?
* 提示用户输入一个点 (x, y):
* 检查这个点是否在以原点 (0, 0)为圆心、半径为10的园内。
*/
package Test;
import java.util.Scanner;
public class T322Scanner {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter a point weith two coordinates: ");
double x = input.nextInt();
double y = input.nextInt();
double m = Math.pow((x * x + y * y), 0.5);
System.out.println((m > 10 ? "Point (" + x + ", " + y + ") is not in the circle!"
: "Point (" + x + ", " + y + ") is in the circle!"));
}
}