Given an integer N, The task is to find the absolute value of the given integer....
To swap two numbers without using a temporary variable, we have multiple approaches. In this article, we are going to learn how to swap two numbers without using a temporary variable....
Learn how to calculate the area of a circle using JavaScript with this easy guide. We will show you a simple JavaScript program that does the math for you. Whether you’re new to coding or looking for a quick refresher, this article has got you covered....
Given two matrices, the task to multiply them. Matrices can either be square or rectangular....
JavaScript Math.exp() is used to get the value of ep, where p is any given number. The number e is a mathematical constant having an approximate value equal to 2.718. It was discovered by the Swiss mathematician Jacob Bernoulli. 2.718 is also called Euler’s number....
Simple interest is a quick method of calculating the interest charge on a loan. Simple interest is determined by multiplying the daily interest rate by the principal by the number of days that elapse between payments....
Given two matrices, the task to multiply them. Matrices can either be square or rectangular....
What is ‘Compound interest’ ? Compound interest is the addition of interest to the principal sum of a loan or deposit, or in other words, interest on interest. It is the result of reinvesting interest, rather than paying it out, so that interest in the next period is then earned on the principal sum plus previously-accumulated interest. Compound interest is standard in finance and economics.Compound interest may be contrasted with simple interest, where interest is not added to the principal, so there is no compounding....
Wrapping up a circular carousel is quite hectic compare to wrapping up a circular image or any shape of the image. In this article first, we have to create a carousel to make that circular, then we can use the text to wrap the carousel. First, you have to create Bootstrap Carousel. To make that carousel circular you can use CSS border-radius property. Then write down your wrapping text and use the CSS Circle() function on the main div. This will wrap your circular carousel in proper way:Below example illustrates the above approach: Example:...
Given an array arr[], the task is to determine the number of elements of the array which are not divisible by any other element in the given array. Examples:...
Given a positive integer n, write a function to find if it is a power of 2 or not...