-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFun23.java
More file actions
25 lines (23 loc) · 630 Bytes
/
Fun23.java
File metadata and controls
25 lines (23 loc) · 630 Bytes
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
package fun;
public class Fun23 {
public static void main(String[] args) {
Quarter(2,3);
Quarter(-2,3);
Quarter(-2,-3);
Quarter(2,-3);
Quarter(0,0);
}
public static void Quarter(int x,int y){
if (x>0 && y>0){
System.out.println("1-chorag");
}else if (x<0 && y>0 ){
System.out.println("2-chorag");
}else if (x<0 && y<0){
System.out.println("3-chorag");
}else if (x>0 && y<0){
System.out.println("4- chorag");
}else {
System.out.println("Bunday chorag yo`q");
}
}
}