Piont in a circle
来源:互联网 发布:乱世佳人影评知乎 编辑:程序博客网 时间:2024/05/22 03:48
问题及代码:import java.util.Scanner;public class first {/** * @param args */public static void main(String[] args) {// TODO Auto-generated method stubScanner point = new Scanner(System.in);System.out.println("Enter a point with two coordinates: ");int r=10;double p1 = point.nextInt();double p2 = point.nextInt();if(Math.sqrt(p1*p1+p2*p2)<10){System.out.printf("Point ("+ p1 + "," + p2 + ") is in the circle");}else{System.out.printf("Point ("+ p1 + "," + p2 + ") is not in the circle");}}}
运行结果:
0 0
- Piont in a circle
- No. 14 - Last Number in a Circle
- JAVA Geometry: point in a circle?
- House Robber II (houses are arranged in a circle)
- UVa 11524 - In-Circle
- POINT IN CIRCLE 题解
- Circle in Square LightOJ
- Face in Circle
- A. Circle Line
- 【OpenGL】Draw a Circle
- Altium 用左键框选后会出现十字光标,且显示为Select a reference piont
- 如何判断 单链表中是否存在环 ( How judges in Singly Linked List whether has a circle )
- Cannot find any information on property 'S' in a bean of type 'beans.Circle'
- Cannot find any information on property 'S' in a bean of type 'beans.Circle'
- LightOJ 1022 Circle in Square
- soj 1621. Circles in Circle
- Changsha F Curve in Circle
- LightOj-1022-Circle in Square
- CSS之Sass Compass
- java格式化输出 printf 例子
- Android 对程序异常崩溃的捕捉
- MyBatis学习总结(一)——MyBatis快速入门
- POJ 1733 Parity game(离散化+带权并查集)
- Piont in a circle
- windows下git bash中文乱码
- iOS多媒体
- 快手之家(aardio.net) - 开头难
- 很方便的Linux远程上传下载文件指令
- 三层架构(我的理解及详细分析)
- HDOJ 1018 Big Number (对数求位数)
- Storyboard的简单使用
- Hashtable 和 HashMap的区别