Java program to Print Prime Number in Given Range

Print Prime Number In Given Range in java

In this tutorial, we will learn writing Java program to print all the prime numbers that are present in the given range. Problem Statement What is Prime Number? Prime Numbers are the numbers that have only 2 factors 1 and the number itself. It is only defined for the number which is greater than ‘1’. … Read more

Python Program to find top two maximum number in array

find top two maximum number in array

In this tutorial, you will learn how to write Python program to find the first top two largest/maximum element in python. To find two maximum number in python, first we will sort our array in ascending order (you can also implement it by sorting in descending order). Now select last two distinct element which will … Read more

Python Program to Print non repeating char in String

python program to Find All Non Repeating Characters In The String

In this tutorial, we will learn writing the python program to print all characters of the string which are not repeating. We can say the character are available only one time in string. Problem Statement Take any string as an input from the user and check if any character in the string is repeating or … Read more

Replace string space with given character in Python

Replace string space with given character

In this tutorial we are going to learn writing python program to replace the string space with given character. Problem Statement For a given string we have to replace all the spaces with the character given by the user as an input. For example: Our logic to replace a string with given character Algorithm to … Read more

Python program to check given character is vowel or consonant

Check Given Character Is Vowel Or Consonant in python

In this tutorial we are going to learn writing python program to check given character is a vowel ( a, e, i, o, u) or any other alphabet other than vowels(consonant) . Problem statement For any input character, we have to check whether a character is a vowel or consonant. For example: Our logic to … Read more

Python program to find sum of integers present in the string

python program to Find Sum Of Integers Present In The String

In this tutorial, we will learn writing the python program to find the sum of integers which is present in the given strings. First we will iterate and check the available character is string or not? if digit the perform addition. Problem Statement Take any string as an input from the user. Now check for … Read more

Python program to find h.c.f. of two numbers using recursion

python program to Find H.C.F. Of Two Numbers Using Recursion

In this tutorial, we are going to learn writing python program to calculate the Highest Common Factor of two numbers. We will use recursion to calculate the HCF Problem Statement For any two numbers that are inputs given by the user, we have to calculate and print the h.c.f. of that numbers.  For example: Our … Read more

Python program to find h.c.f. of two numbers using iteration

python program to Find H.C.F. Of Two Numbers Using Iteration

In this tutorial, we are going to learn writing a python program to calculate the Highest Common Factor of two numbers. In this program we will use iteration concept. Problem Statement For any two numbers that are inputs given by the user, we have to calculate and print the h.c.f. of that numbers.  For example: … Read more