Computer Science, asked by sanjusk36, 10 months ago

to calculate the si after taking principle, rate and time from the user in Java programming. Plz answer quickly I will mark you brainliest answer of ICSE board ok plzzz. ​ Plzzz answer

Answers

Answered by sswaraj04
1

Answer:

import java.util.Scanner;

public class HelloWorld{

    public static void main(String []args){

       Scanner sc=new Scanner(System.in);

       System.out.println("Enter principal amount");

       double a=sc.nextInt();

       System.out.println("Enter rate of interest");

       double b=sc.nextInt();

       System.out.println("Enter period of time(in years)");

       double c=sc.nextInt();

       System.out.println("Simple Interest calculated is "+(a*b*c)/100);

    }

}

Explanation:

Hope it helps :-)

Mark it brainliest

Similar questions