java

5 different Java program to print a hollow square star pattern with diagonal

Java program to print a hollow square pattern with star in 5 different ways. Learn how to do this by using for loops, while loops, do-while loops, using a separate method and with user-input character.

Read
c#

4 ways to concatenate two arrays in C sharp

4 different ways to concatenate or join two arrays in C#. Learn how to join arrays by using a list, using Enumerable.Concat method, using Array.CopyTo and Array.Copy with Array.Resize methods with examples.

Read
python

Python program to check if a number is divisible by another number or not

Python program to check if a number is divisible by another number, if a number is divisible by 2,3, or 5, find the numbers from a list and in a range.

Read
C++

2 different C++ program to check if a number is spy number or not

C++ program to check if a number is spy number or not in two different ways. The program will take one number as input from the user and print one message if the number is a spy number or not.

Read
java

3 different Java program to find the volume of a cylinder

Java program to find the volume of a cylinder in 3 different ways. We will learn how to find the cylinder volume by taking the values as inputs and by using a separate method.

Read
java

Java program to check if a number is circular prime or not

Java program to check if a number is circular prime or not. The program will take one number as input from the user and print a message that it is circular prime or not.

Read
javascript

How to sort the array elements in descending order in JavaScript

Different ways to sort the array elements in descending order in JavaScript. Learn how to reverse sort an array of numbers, array of characters and array of objects.

Read
javascript

3 ways in JavaScript to remove duplicate items from an array

3 different ways in JavaScript to remove duplicate items from an array. Learn how to remove duplicate items by iterating over the array, by using filter and by converting the array to a set.

Read
javascript

4 different JavaScript program to find the factorial of a number

4 different ways in JavaScript to find the factorial of a number. Learn how to find the factorial by using a for loop, while loop, recursively and with an arrow function.

Read
typescript

How to get the previous year in TypeScript

Learn how to get the previous year in TypeScript. The program will print the previous year for a date object in TypeScript.

Read