-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNumberInWord.java
More file actions
65 lines (38 loc) · 739 Bytes
/
NumberInWord.java
File metadata and controls
65 lines (38 loc) · 739 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import java.util.Scanner;
public class NumberInWord {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter Integer;");
int number = input.nextInt();
if (number == 1) {
System.out.print("One");
}
if (number == 2) {
System.out.print("Two");
}
if (number == 3) {
System.out.print("Three");
}
if (number == 4) {
System.out.print("four");
}
if (number == 5) {
System.out.print("Five");
}
if (number == 6) {
System.out.print("Six");
}
if (number == 7) {
System.out.print("Seven");
}
if (number == 8) {
System.out.print("Eight");
}
if (number == 9) {
System.out.print("Nine");
}
if (number == 10) {
System.out.print("Ten");
}
}
}