write a program to calculate simple interest ?
Answers
Answered by
5
Answer:
public class SimpleInterest
{
public void calcSimplnt( )
{
double p = 5500, r = 7.2, t = 3 ;
double si = 0 ;
si = (p*r*t) / 100 ;
System.out.print(" Simple Interest is :" + si + "\n") ;
}
}
Output:
Simple Interest is : 1188
Java:
Java has some special operators for particular tasks. Each operator performs a specific task it is designed for. Java is very rich in built-in operators. Java places more significance on operators than most other computer languages do.
Similar questions