JavaScript program to convert a seconds value to hour, minute and seconds or HH:mm:ss format. We will also learn how to convert it to other formats.
ReadPython program to check if a number is a perfect number or not with user input number. It will also find all perfect numbers in a given range.
ReadJavaScript program to calculate BMI with user input values. It will take the weight and height as inputs from the user, calculate the BMI and print the output.
ReadC++ program to convert pounds to kilogram. It will take the weight in pounds as input from the user, convert it to kilogram and print out the result.
ReadPython program to check if a number is moran number or not. This post will also show you how to find all Moran numbers in a range with user input values.
ReadLearn how to convert a list to set in Java in different ways. This post will show you 4 different ways to convert a list to set in Java with example programs.
ReadLearn how to check for disjoint sets in Java in two different ways. We will use iterative approach and Collections.disjoint method to check for disjoint sets in this example.
ReadLearn the differences between Scanner next() and nextLine() in Java with examples. Both of these methods are used to read user input as strings.
ReadThis post will explain the differences between random.sample() and random.choice() in Python. Both of these functions are defined in the random module and they are used to get a list or a single random element from a list.
ReadC program to check if a character is an alphabet or not in different ways. We will learn how to compare with letters, ASCII values and isalpha function to check for alphabets.
Read