Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 711 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 711 Bytes

Compound Interest

A java application to calculate the compound interest with the principal amount measured with time.

What I've learned

  • Math.pow() is used to calculate a number which is raise to the power of any variety of another number.
import static java.lang.Math.pow;
  • Scanner class in java is used to obtain primitive data types such as int, double, string, char, etc. It uses the java.util package in order to 'scan' for user input instead of using the 'get' and 'set' methods.
Scanner sc = new Scanner(System.in);

Example of the java application

image