You are here: Home / Topics / Java Program for Converting Rupees into Paisa

Java Program for Converting Rupees into Paisa

Filed under: Java on 2023-08-11 19:06:31

// Program to convert ruppes to paisa

public class SimpleConversion
{
   public static void main(String args[])
   {
           
           double n=56.50;
           int a=(int) n;
           double p=(n-a)*100;
           System.out.println("Rs : "+a);
           System.out.println("paise :" +(int)p);
   }
}


Output:

Rs : 56
paisa : 50

About Author:
V
Vinay Kumar     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.