Java Program to calculate the simple interest.

Output: