Computer Science, asked by MasterQuestioner, 1 year ago

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 duragpalsingh
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 Anonymous
9

hola mate

.

here is ur answer

hope this helps

❤❤❤❤❤

Attachments:
Similar questions