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
Post a Comment