Java program to find roots of quadratic equation Write a Java program to find roots of quadratic equation in all cases. This Java Program To Compute Roots of Quadratic Equation makes use of If – Else Block. What is a Quadratic Equation? It is a term used in Elementary Algebra. The Standard Form of a Quadratic… Read More »
Java program to multiply N numbers without using * operator Write a Java program to multiply N numbers without using * multiplication operator.As we all know that there are lot of methods or techniques to solve problem to produce desired output. Basic idea of this java program to show varies methods of problem solving techniques, although we… Read More »
Java program to find Reverse of a number Java Program to reverse a number in Java Programming, you have to ask to the user to enter the number. Start reversing the number, first make a variable rev and place 0 to rev initially, and make one more variable say rem. Now place the modulus of… Read More »
Java Program to Find HCF and LCM of Two Numbers To find the HCF and LCM of two number in Java Programming, you have to ask to the user to enter the two number, to find the HCF and LCM of the given two number to display the value of the HCF and LCM of… Read More »
Java program to generate random numbers To generate random numbers in Java programming, you have to create the object of Random class available in the java.util.Random package as shown in the following program. Following Java program to generate random numbers: This code generates random numbers in range 0 to 10000
Java Program to Calculate Arithmetic Mean of N numbers Java Program to calculate the arithmetic mean of some numbers in Java Programming, you have to ask to the user to enter number size then ask to enter the numbers of that size to perform the addition, then make a variable responsible for the average and… Read More »
Java Program to print Armstrong numbers between desired Range Print Armstrong Numbers: To print Armstrong number in Java Programming, you have to ask to the user to enter the interval in which he/she want to find Armstrong numbers between desired range as shown in the below program. Let’s look at the following Java program.