Skip to content

Commit fd88629

Browse files
authored
Merge pull request ronijpandey#22 from shreya-jain4/patch-2
Added comment NumberToWords.java#2
2 parents 50e8c29 + 71c9dfd commit fd88629

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

NumberToWords.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ public static void main(String[] args)throws IOException
1616
s=in.readLine();l=s.length();int n[]=new int[13];
1717
for(int i=l-1;i>=0;i--,c--)
1818
{
19-
n[c]=s.charAt(i)-48;
19+
n[c]=s.charAt(i)-48;//extracting character
2020
}y=0;
2121
for(int i=++c;i<13;i++)
2222
{
23-
switch(i)
23+
switch(i)//switch case
2424
{
2525
case 0:if(n[i]==0)break;ans=ans+l19[n[i]]+"Trillion ";break;
2626
case 1:

0 commit comments

Comments
 (0)