-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinteger23.java
More file actions
24 lines (21 loc) · 587 Bytes
/
integer23.java
File metadata and controls
24 lines (21 loc) · 587 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
package integer;
import java.util.Scanner;
public class integer23 {
public static void main(String[] args) {
int a;
int b;
int c;
int d;
int e;
Scanner scanner=new Scanner(System.in);
System.out.print("Kun boshidan boshlab o'tgan sekund->");
a = scanner.nextInt();
b = a / 3600;
c = a - b * 3600;
d = c / 60;
e = c - d * 60;
System.out.print("Kun boshidan boshlab o'tgan soat-> "+b);
System.out.print(" minut-> "+d);
System.out.print(" sekund-> "+e);
}
}