Java Program to Generate Multiplication Table In this program, you’ll learn to generate multiplication table of a given number. This is done by using a for and a while loop in Java. Example 1: Generate Multiplication Table using for loop public class MultiplicationTable{ public static void main(String[] args){ int num = 5; for(int i …
Day: April 19, 2021
Java Program to Find Factorial of a Number In this program, you’ll learn to find the factorial of a number using for and while loop in Java. The factorial of a positive number n is given by: factorial of n (n!) = 1 * 2 * 3 * 4 * … * n Example 1: …
Java Program to Calculate the Sum of Natural Numbers In this program, you’ll learn to calculate the sum of natural numbers using for loop and while loop in Java. The positive numbers 1, 2, 3… are known as natural numbers and its sum is the result of all numbers starting from 1 to the …
Java Program to Check Whether a Character is Alphabet or Not In this program, you’ll learn to check whether a given character is an alphabet or not. This is done using an if else statement or a ternary operator in Java. Example 1: Java Program to Check Alphabet using if else public class Alphabet{ …
Java Program to Check Whether a Number is Positive or Negative In this program, you’ll learn to check whether a given number is positive or negative. This is done by using a if else statement in Java. Example: Check if a Number is Positive or Negative using if else public class PositiveNegative{ public static …
Java Program to Check Leap Year In this program, you’ll learn to check if the given year is a leap year or not. This is checked using a if else statement. A leap year is exactly divisible by 4 except for century years (years ending with 00). The century year is a leap year …
Java Program to Find all Roots of a Quadratic Equation In this program, you’ll learn to find all roots of a quadratic equation and print them using format() in Java. The standard form of a quadratic equation is: ax2 + bx + c = 0, where a, b and c are real numbers and a …
(How to Evaluate the Performance Of Deep Learning Models in Python) In this Learn through Codes example, you will learn How to Evaluate the Performance Of Deep Learning Models in Python. Evaluate_the_Performance_Of_Deep_Learning_Models _in_Python Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data …
(How to Evaluate Your Machine Learning Algorithms in Python using Scikit-Learn) In this Learn through Codes example, you will learn How to Evaluate Your Machine Learning Algorithms in Python using Scikit-Learn. Evaluate_Machine_Learning_Algorithms_in_Python Python Example for Beginners Special 95% discount 2000+ Applied Machine Learning & Data Science Recipes Portfolio Projects for Aspiring Data Scientists: …
Java Program to Find the Largest Among Three Numbers In this program, you’ll learn to find the largest among three numbers using if else and nested if..else statement in Java. Example 1: Find Largest Among three numbers using if..else statement public class Largest{ public static void main(String[] args){ double n1 = -4.5, n2 = …