java

3 ways in Java to print the Arithmetic Progression(AP) series

3 different Java programs to print arithmetic progression. The post will show you how to use one for loop and one recursive method to print an arithmetic progression.

Read
java

Java program to find the sum of the series 1 + 1/2 + 1/3 + 1/4 or harmonic series

Java program to find the sum of the series 1 + 1/2 + 1/3 + 1/4 or harmonic series. This program will take the value of n as input from the user and print the sum of the series from 1 to n.

Read
c#

C# program to convert a string to byte array

C# program to convert a string to array of bytes. We will use the Encoding.ASCII.GetBytes method to do the conversion.

Read
c#

C# program to remove duplicate characters from a string

C# program to remove duplicate characters from a string. It will take one string as input from the user and remove all duplicate characters.

Read
c#

C# program to find the index of an element in an array

C# program to find the index of an element in an array. We can use the FindIndex method to find the index of an array element.

Read
c#

C# program to find the area and perimeter of a rectangle

C# program to find the area and perimeter of a reactangle. The C# program will take the height and width as input from the user and print the area and perimeter.

Read
c#

C# program to check if an item exists in an array

C# program to check if an item exists in an array or not. We will use Array.Exists method to find that.

Read
c#

2 different C# program to check if all numbers in an array are even or odd

C# program to check if all numbers in an array are even or odd. One number array is given. Check if all numbers in that array are even or odd.

Read
c

What is %p modifier in C programming

C %p modifier explanation with example. %p is used to print the value of a pointer in C. This post will show you how to use %p with examples.

Read
c

Write a C program to convert an integer value to character

In this post, we will learn how to convert an integer to character in C. We will check two different ways to do that.

Read