-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinteger13.java
More file actions
25 lines (21 loc) · 578 Bytes
/
integer13.java
File metadata and controls
25 lines (21 loc) · 578 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 integer;
import java.util.Scanner;
public class integer13 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int number;
int yuzlar;
int onlar;
int birlar;
int e;
int f;
System.out.println("number: ");
number = scanner.nextInt();
yuzlar = number / 100;
onlar = number - yuzlar * 100;
birlar = onlar / 10;
e = onlar - birlar * 10;
f = yuzlar + 100 * birlar + 10 * e;
System.out.println("Holat:" + f);
}
}