-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIf28.java
More file actions
34 lines (29 loc) · 875 Bytes
/
If28.java
File metadata and controls
34 lines (29 loc) · 875 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
26
27
28
29
30
31
32
33
34
package ifdirect;
import java.util.Scanner;
public class If28 {
public static void main(String[] args) {
Scanner scanner =new Scanner(System.in);
int a,b,c,d,e,f;
System.out.println("yilni kiriting : ");// 1 2 3 $ 5 6 7 $
a=scanner.nextInt();//2000
b=a%100;//1999=99
d=365;
e=366;
c=a%400;//1999-1600=399
System.out.println (c);
f=a%4;
if (b==0){
if (c==0){
System.out.println("kabisa yili " + e +" kun bor");
}else {
System.out.println("kabisa yili emas " + d+" kun bor");
}
}else {
if (f==0){
System.out.println("kabisa yili " + e +" kun bor");
}else {
System.out.println("kabisa yili emas " + d +" kun bor");
}
}
}
}