write a program in Java to enter any digit and print it in words
Answers
Answered by
1
Answer:
import java.util.*;
public class answer
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
int n,i,j;
System.out.println("Enter the number");
n=in.nextInt();
while(n>0)
{
i=n%10;
System.out.println(i);
n=n/10;
}
}
}
Similar questions