We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f7a82e commit 1634edcCopy full SHA for 1634edc
NumberToWords.java
@@ -10,6 +10,7 @@ public static void main(String[] args) throws IOException {
10
DataInputStream in = new DataInputStream(System.in);
11
int t, l, x, y;
12
String s, ans;
13
+ // initializing the strings to store the words for each number
14
String l19[] = {"", "One ", "Two ", "Three ", "Four ", "Five ", "Six ", "Seven ", "Eight ", "Nine ", "Ten ", "Eleven ", "Twelve ", "Thirteen ", "Fourteen ", "Fifteen ", "Sixteen ", "Seventeen ", "Eighteen ", "Nineteen "};
15
String l90[] = {"", "", "Twenty ", "Thirty ", "Forty ", "Fifty ", "Sixty ", "Seventy ", "Eighty ", "Ninety "};
16
//System.out.println("Enter input:");
0 commit comments