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.
ReadJava 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.
ReadC# program to convert a string to array of bytes. We will use the Encoding.ASCII.GetBytes method to do the conversion.
ReadC# program to remove duplicate characters from a string. It will take one string as input from the user and remove all duplicate characters.
ReadC# 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.
ReadC# 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.
ReadC# program to check if an item exists in an array or not. We will use Array.Exists method to find that.
ReadC# 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.
ReadC %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.
ReadIn this post, we will learn how to convert an integer to character in C. We will check two different ways to do that.
Read