Day 70: Simple Interst of 100DaysCodingChallenge

Hello all, 

#day70 

Day70 

Today's my task was to Write a Program to Print Simple Interst based on Calculation of Principle, Rate of Interest and Number of Years taken by the user input Using Function.

I have started the 100 days of coding challenge to improve my programming skills..

Code : 

let p = prompt("Enter a Principle Amount : ");
let r = prompt("Entera Rate of an Interest : ");
let n = prompt("Enter a Number of Years : ");
let s = "";
function si(p, r, n) {
  s += (p * r * n) / 100;
  console.log(`The Simple Interest is ${s}`);
}
si(p, r, n);

Output :     

 






Happy Coding:)

Thank you...      

Comments

Popular posts from this blog

Day 100: Date Time to Number of 100DaysCodingChallenge

Day 64: Pattern using loops of 100DaysCodingChallenge

Day 20: Positive Number of 100DaysCodingChallenge