# 点是否在相应的图形内(Is the point in the corresponding drawing)-其他

## 点是否在相应的图形内(Is the point in the corresponding drawing)

### 点是否在圆内

``````
import java.util.*;
import javax.swing.*;
class Main {
public static void main(String[] args){
Scanner input = new Scanner(System.in);

System.out.print("Enter a point with two coordinates: ");
double pointX = input.nextDouble();
double pointY = input.nextDouble();

if(Math.pow((pointX * pointX + pointY * pointY) , 0.5) > 10){
System.out.print("Point (" + pointX + ", " + pointY + ") is not in the circle");
}else{
System.out.print("Point (" + pointX + ", " + pointY + ") is in the circle");
}

}
}
``````

————————

### Is the point in the circle

``````
import java.util.*;
import javax.swing.*;
class Main {
public static void main(String[] args){
Scanner input = new Scanner(System.in);

System.out.print("Enter a point with two coordinates: ");
double pointX = input.nextDouble();
double pointY = input.nextDouble();

if(Math.pow((pointX * pointX + pointY * pointY) , 0.5) > 10){
System.out.print("Point (" + pointX + ", " + pointY + ") is not in the circle");
}else{
System.out.print("Point (" + pointX + ", " + pointY + ") is in the circle");
}

}
}
``````