a program which accept amount in dollars and convert it to the rupees.
Write a program, which accept amount in dollars, and convert it to the rupees. class rupeeDollar { public static void main(String args[]) { double rup,dol; dol=Double.parseDouble(args[0]); if(dol>0) { rup=dol*45.38; System.out.println("$"+dol+" is equal to "+rup+" INR"); }
No comments:
Post a Comment