c#

3 different C# programs to print the name and age of a user

C# program to print the name and age of a user. It will take the name and age values as inputs from the user and print it on the console. We will use a separate method and a class to save these values.

Read
c#

C# program to print the result of the division of two numbers

C# program to find the result of the division of two numbers. This program will show you how to find the division with user-input values and how to find the quotient and remainders of a division.

Read
c#

C# program to convert a binary value to decimal

C# program to convert a binary value to decimal. We will learn three different ways to do the conversion. By using a loop, recursively and by using Convert.ToInt32 method.

Read
c#

4 different C# programs to convert a decimal number to binary

C# program to convert a decimal value to binary in 4 different ways, by using an array, by using a StringBuilder object, recursively and by using Convert.ToString method.

Read
python

Python program to print the harmonic series

Python program to print the harmonic series. We will learn three different ways to print the harmonic series. The program will print the value as number or as string.

Read
java

Java program to print the harmonic series

Java program to print the harmonic series. We will learn three different ways to print this series. The program will print the value as number or as string.

Read
java

Java program to check if two strings are an anagram or not

Java program to check if two strings are anagram or not. The program will take two strings as the inputs and return one boolean value if the strings are anagram or not.

Read
java

Java program to find the first repeating character in a string

Java program to find the first repeating character of a string. We will learn two ways to do it, by using a for loop and by using a hashset.

Read
java

4 different Java program to find a random value in an array

Java program to find a random value in an array in 4 different ways. We will use java.Math, java.util.Random, java.util.concurrent.ThreadLocalRandom and SecureRandom to find a random value in an array.

Read
java

Java program to check if a year is a leap year or not

How to check if a year is leap year or not in Java. We will also learn how to print all leap years in a given range of years.

Read