Java program to print multiplication table of a number

Java program to print the Multiplication table of a number : We can use one for loop, while loop or do-while loop to print a multiplication table for any number. Using Scanner, we will get the number for which the Read more…

Python Program to find the LCM of two numbers

Find the LCM of two numbers in python : What is an LCM value of two numbers? LCM or least common multiplier of two number is the smallest number that is divisible by both of these numbers. i.e. the lowest Read more…

How to check if a date is valid or not in python

Python program to check if a date is valid : In this tutorial, we will check if a date is valid or not using python. A date is called valid if it actually exists in the calendar. Our program will Read more…

Count number of digits in a number in Python

Count the number of digits in a number using python : Using python, count the number of digits in a number. In this tutorial, we will learn how to count the total number of digits in a number using python. Read more…

Find average of numbers in a list using python

Calculate the average of numbers in a list using python : In this tutorial, we are going to show you three different ways to calculate the average of numbers of a list in python. We are using python3 (version 3.6.1). Read more…

Java program to find the counts of each character in a String

Java Program to find character counts in a String : In this tutorial, we will find the count of each characters in a given string (updated version). Solution : 1. First get the string input from the user 2. Create Read more…

Java Final – Final Variables, Final Methods and Final Class

”final” keyboard can be used with methods, classes and variables in Java. Each use has different meaning that we are going to discuss in details in this tutorial : final variable, final method and final class. 1. Final Variable : Read more…

Java program to check if a Matrix is Sparse Matrix or Dense Matrix

What is a sparse matrix ? A sparse matrix is a matrix in which most of the values are zero. Similarly a matrix with maximum non-zero values is known as dense matrix. In this tutorial, we will learn how to Read more…

Java Program to convert Decimal to Binary : Java Tutorial 3

Java program to convert Decimal to Binary Number : In this tutorial, we will check how to convert a decimal number to binary. We will use three different methods to convert one decimal number to its binary form. Decimal : Read more…