Click Here To Follow our Telegram Channel for more such news and amazing free stuffs.

  Telegram Channel  - https://t.me/codexelltech


import java.util.*;
import java.util.Scanner;
class Emi

{
    public static void main(String[]args)
    {
        Scanner a = new Scanner(System.in);
       
        double principal, rate, time, emi;
       
        System.out.println("Enter principal:");
        principal = a.nextFloat();
       
        System.out.println("Enter rate:");
        rate = a.nextFloat();
       
        System.out.println("Enter time:");
        time = a.nextFloat();
       
        rate=rate/(12*100);
        time=time*12;
       
        emi= (principal*rate*Math.pow(1+rate,time))/(Math.pow(1+rate,time)-1);
        System.out.println("Monthly EMI is=" +emi);
    }
}


Output:
Enter principle:
12000
Enter rate:
5
Enter time:

Monthly EMI is 526.4566


Click Here To Follow our Telegram Channel for more such news and amazing free stuffs.

  Telegram Channel  - https://t.me/codexelltech

Click here to visit www.codexell.tech for more such references.



Previous Post Next Post