展开全部
import java.util.Scanner;
public class E3_22 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("输入十字坐标系中的一个点,例如 4 5 :");
double x = input.nextDouble();
double y = input.nextDouble();
double distance = Math.pow((x * x + y * y) , 0.5);
if (distance <= 10)
System.out.println("点" + "(" + x + "," + y + ")" + " 在圆内");
else
System.out.println("点" + "(" + x + "," + y + ")" + " 不在圆内");
}
}
public class E3_22 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("输入十字坐标系中的一个点,例如 4 5 :");
double x = input.nextDouble();
double y = input.nextDouble();
double distance = Math.pow((x * x + y * y) , 0.5);
if (distance <= 10)
System.out.println("点" + "(" + x + "," + y + ")" + " 在圆内");
else
System.out.println("点" + "(" + x + "," + y + ")" + " 不在圆内");
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询