In this example we will replace a string in another string using JavaScript This time will use regular expressions We will define a string, then we will define t he …
-
-
In this example we show you how to generate random strings in JavaScript Example 1 We will define a list of characters which will include lower and upper case A …
-
In this example we will show you how to generate a multiplication table Example 1 We take the user input and store in the constant number We then use a …
-
Even numbers are those numbers that are exactly divisible by 2. The remainder operator % will give the remainder when used with a number. Example 1 // program to check …
-
In this article we will convert from celsius to fahrenheit The formula is fahrenheit = (celsius * 1.8) + 32 Example 1 This will prompt a user for input The …
-
In this example we show how to add 2 numbers in JavaScript We use the + operator to add two or more numbers. Example 1 const num1 = 6; const …
-
In this example we show how to find the largest of three user inputted integers We will use an if – else statement Example using System; namespace ConsoleApp1 { …
-
In this example we show you how to get the mean of given Set of Numbers. The mean is the average of the numbers. It is easy to calculate: add up all the numbers, then divide …
-
An Armstrong number or a plus perfect number) in a given number base is a number that is the sum of its own digits each raised to the power of …
-
In this article we will show you how show to determine if a number is a palindrome A palindromic number is a number (such as 121) that remains the same …
-
In this article we will show you how show a fibonacci series In mathematics, the Fibonacci numbers, commonly denoted Fn, form a sequence, the Fibonacci sequence, in which each number …
-
In this article we will show you how check the factors of an integer A factor is a number that divides the given number without any remainder. Example using System; namespace ConsoleApp1 { class Program …