Computer Science, asked by leher5115, 6 months ago

wap to accept principal, time rate
and calculate simple interest​

Answers

Answered by rehandude
2

Answer:

import java.util.Scanner;

class SI

{

Scanner sc =new Scanner(System.in);

System.out.println("Enter the PRINCIPAL Value");

int principal=sc.nextInt();

System.out.println("Enter the time");

int t=sc.nextInt();

System.out.println("Enter rate percentage");

int r=sc.nextInt();

int si = (p*r*t);

System.out.println("The simple interest is "+si);

}

hope this helps u out

plzz mark this as brainliest

Similar questions