Skip to content

Commit 0ff6876

Browse files
committed
Aktualizacja5
1 parent 3b7a1d5 commit 0ff6876

File tree

3 files changed

+53
-13
lines changed

3 files changed

+53
-13
lines changed

.idea/workspace.xml

Lines changed: 29 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
1.14 KB
Binary file not shown.

src/jp/JP6.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package jp;
2+
3+
import java.util.Random;
4+
5+
public class JP6 {
6+
public static void main(String[] args) {
7+
//losowanie cyfr
8+
Random ran = new Random();
9+
int x = ran.nextInt(10) + 1;
10+
System.out.println("x = " + x);
11+
int y = ran.nextInt(10)+ 1;
12+
System.out.println("y = " + y);
13+
14+
System.out.println(x>y);
15+
System.out.println((x*2)>y);
16+
System.out.println(y > x + 3 && y > x -2);
17+
System.out.println((x * y) % 2 == 0);
18+
19+
20+
21+
22+
23+
}
24+
}

0 commit comments

Comments
 (0)