FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Algorithms-Java/src/boolean39.java at master · professorDeveloper/Algorithms-Java · GitHub
professorDeveloper
/
Algorithms-Java
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
1
Star
16
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Algorithms-Java
/
src
/
boolean39.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (22 loc) · 680 Bytes
Breadcrumbs
Algorithms-Java
/
src
/
boolean39.java
Copy path
File metadata and controls
25 lines (22 loc) · 680 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import
java
.
util
.
Scanner
;
public
class
boolean39
{
public
static
void
main
(
String
[]
args
) {
boolean
x11
,
y11
,
x22
,
y22
;
Scanner
scanner
=
new
Scanner
(
System
.
in
);
System
.
out
.
println
(
"x1 :"
);
int
x1
=
scanner
.
nextInt
();
System
.
out
.
println
(
"y1 :"
);
int
y1
=
scanner
.
nextInt
();
System
.
out
.
println
(
"x2 :"
);
int
x2
=
scanner
.
nextInt
();
System
.
out
.
println
(
"y2 :"
);
int
y2
=
scanner
.
nextInt
();
int
a
=
Math
.
abs
(
y1
-
y2
);
x11
=(
0
<
x1
)&&(
x1
<=
8
);
y11
=(
0
<
y2
)&&(
y1
<=
8
);
x22
=(
0
<
x2
)&&(
x2
<=
8
);
y22
=(
0
<
y2
)&&(
y2
<=
8
);
int
b
=
Math
.
abs
(
x1
-
x2
);
System
.
out
.
println
(
true
);
}
}
Back
|
FazBrowse Home
|
New Git URL