Hello I am new to
java ..need help ...see this code.:-
class Ast1
{
public static void main (
String [] args)
{
double d1=547874.88;
int n= (int)d1/100000;
int n2= (int)d1%100;
System.out. println(n+" Hundred" +" "+ n2+ " Thousand");
}
}
The program is compiling but the output shows " 5 Hundred 74 Thousand " It should display 5 Hundred 47 thousand 8 Hundred 74 Dollars 88 cents. Can anyone help me in completing the full code?
Sam.