Write a program to input the Principal, Rate and Time for a certain amount of money
and print the Simple Interest.
Note: S.I = prt / 100;
Class 9 - Computer Applications - Ch 5 - Input in JAVA
Answers
Answered by
20
Hey there!
Program to input the Principal, Rate and Time for a certain amount of money and print the Simple Interest.
import java.util.*;
public class Question5
{
static void main()
{
Scanner sc=new Scanner(System.in);
float principal,rate,time,SI;
System.out.println("Enter Principal, Rate and Time:");
principal=sc.nextFloat();
rate=sc.nextFloat();
time=sc.nextFloat();
SI=(principal*rate*time)/100;
System.out.println("Simple Interest="+SI);
}
}
Hope It Helps You!
Anonymous:
sir plz inbox me I have a question
Answered by
9
hola mate
.
here is ur answer
hope this helps
❤❤❤❤❤
Attachments:
Similar questions
Political Science,
7 months ago
Biology,
1 year ago
Math,
1 year ago
CBSE BOARD X,
1 year ago
Social Sciences,
1 year ago