Day 36: Power of a Number with in-built function of 100DaysCodingChallenge
Hello all,
I have started the 100 days of coding challenge to improve my programming skills..
Today is the Day36 of 100DaysCodingChallenge for
Power of a Number using in-built function input Numbers taken by the user.
Code :
let a = prompt("Enter a base : "); let b = prompt("Enter b exponent : "); let p = Math.pow(a, b); console.log("Power of", a+"'s", b, " is :", p);
Output :
Happy Coding:)
Comments
Post a Comment