4 Different ways to print the even numbers in a given range. We will use a for loop, while loop, jump in between the numbers with a while loop and how to use the range function.
ReadIn this tutorial, we will learn how to find the total number of blank spaces in a text file. This program will teach you basic file operations in python. You will learn how to iterate the lines of a text file and how to read each word and each character for each line.
ReadThis python program will show you how to find the circumference of
ReadIn this tutorial, we will learn how to find the sum of all digits of a number in Java. Algorithm we are using is as below :.
ReadIn this tutorial, we will learn how to find the area and perimeter of a rectangle. To find the area and perimeter, we need only height and width of the rectangle. Area of a rectangle is 'height * width' and perimeter is ' 2* ( height + width )' .
ReadIn this tutorial, we will learn how to use min and max methods of Java 8 Stream to find the minimum and maximum element in a list. For both 'max' and 'min', we will pass one 'Comparator' using which each item will be compared to each other to find the minimum or maximum values.
ReadIn this tutorial, we will create and store some student's details and find out the Student with highest marks. We have two classes in this example. First one is the 'Student.java' class and second one is the 'Main.java' class. 'Student.java' will hold the informations about a student. And, 'Main.java' is used to do other tasks like create a student, find the top student etc.
ReadIn this tutorial, we will learn how to find the area and circumference of a circle using Java. We only need the radius of the circle to find both of these values. Area is 'PI*radius*radius'and circumference is '2*PI*radius'. Let's take a look how to calculate these values :.
ReadIn this tutorial, we will learn how to find the maximum and minimum values in a list within range. Steps we are using in this Example program is as below :.
ReadIn this tutorial, we will learn how to find the maximum and minimum values in a list within range. Steps we are using in this Example program is as below :.
Read