Skip to content

Commit a628886

Browse files
BryzzBryzz
authored andcommitted
new directory Brice created. closes #2, closes #3, closes #4, closes #5
1 parent ad1e9d2 commit a628886

File tree

12 files changed

+114
-0
lines changed

12 files changed

+114
-0
lines changed

resources/Brice/CompareNumbers/.attach_pid18990

Whitespace-only changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.bryzz.dsc.numbers;
2+
3+
import java.util.Scanner;
4+
5+
6+
class Main {
7+
8+
private static Scanner scanner = new Scanner(System.in);
9+
public static void main(String[] args) {
10+
11+
System.out.println("Enter two numbers:\n");
12+
double x = scanner.nextDouble();
13+
double y = scanner.nextDouble();
14+
if(x > y) {
15+
System.out.println(x + " Larger");
16+
}else if(y > x) {
17+
System.out.println(y + " Larger");
18+
}else {
19+
System.out.println("These numbers are equal");
20+
}
21+
22+
}
23+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>
12+

0 commit comments

Comments
 (0)