Write a program to calculate Simple Interest by entering required values from the user using scanner class.
Answers
Answered by
1
Explanation:
Java Program to Find the Simple Interest
public class Simple_Interest.
float p, r, t;
Scanner s = new Scanner(System.
System. out. print("Enter the Principal : ");
p = s. nextFloat();
System. out. print("Enter the Rate of interest : ");
r = s. nextFloat();
System. out. print("Enter the Time period : ");
Similar questions
Computer Science,
3 months ago
Political Science,
3 months ago
Chemistry,
8 months ago
English,
1 year ago