w3codeworld logo
  • Home
  • C
  • C++
  • Java
  • Python3
  • JavaScript
  • C#
  • PHP
  • Codeigniter
  • Laravel
  • Articles
  1. Home
  2. Articles
  3. Javascript program to enter the P, T, R, and calculate it's Simple Interest
  • PHP
  • Codeigniter
  • Laravel
  • C
  • C++
  • Java
  • Python3
  • JavaScript
  • C#

Javascript program to enter the P, T, R, and calculate it's Simple Interest

  • Author: Admin
  • Last Updated: 2020-12-20
  • Category: JavaScript

Javascript program to enter the P, T, R, and calculate it's Simple Interest. There are you will learn how to find the Simple Interest through P, T, R in javascript language.

 

Formula:

SI = (P * T * R) / 100

Where:

P = principal amount

T = time

R = rate

SI = simple interest


Let us understand this example through javascript program:

/* Javascript program to enter the P, T, R, and calculate it's Simple Interest */

<script type="text/javascript">

    var p, t, r, SI;
    
    // p = principal
    // t = time
    // r = rate
    // SI = simple interest
    
    // Calculate simple interest
    p = 15;
    t = 12;
    r = 12;
    
    SI = (p * t * r) / 100;
    
    // Output
    document.write("Simple Interest = " + SI);

</script>

 

Output Screen:

Simple Interest = 21.6

 

Related Articles

Javascript program to enter the temperature in Celsius and convert it into Fahrenheit Javascript program to enter the temperature in Fahrenheit and convert it to Celsius Javascript program to enter the P, T, R, and calculate its Compound Interest Javascript program to enter the P, T, R, and calculate it's Simple Interest How to make a digital clock using javascript Javascript program to enter the base and height of a triangle and find its area Javascript program to find the power of any number x^y Javascript program to enter the two angles of a triangle and find the third angle Javascript program to enter any number and calculate its square root Javascript program to enter the radius of a circle and find its diameter, circumference, and area Javascript program to enter the length in centimeter and convert it into meter and kilometer Javascript program to enter two numbers and perform all arithmetic operations Javascript program to enter the length and breadth of a rectangle and find its area Javascript program to enter length and breadth of a rectangle and find its perimeter Javascript program to enter two numbers and find their sum
Recent Articles
  • Write a program to find all the patterns of 0(1+)0 in the given string
  • C# program to enter two numbers and find their sum
  • Write a c++ program to store information of a student using the structure with the for loop
  • Write a c program to store information of a student using the structure with the for loop
  • How to write a c++ program to find the sum of natural numbers using recursion
  • How to write a c program to find the sum of natural numbers using recursion
  • Write a python program to convert an array into zig-zag fashion using the function
  • C program to perform input/output of all basic data types
  • Write a python program to print a hollow square star pattern with diagonal using loops (for and while loop)
  • Write a c program to make a circular rotation of an array by k positions using the loops
View All Articles
  W3Codeworld

Get the latest updates

  • ABOUT US
  • About Company
  • Contact Us
  • Terms Conditions
  • Privacy Policy
  • Top Tutorials
  • PHP
  • Codeigniter
  • Laravel
  • Top Articles
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • PHP

© Copyright 2020-2021. All Rights Reserved.