Posts
Install Laravel Admin Panel | Admin Dashboard in Laravel | Admin Panel L...
- Get link
- X
- Other Apps
Install Laravel Admin Panel | Admin Dashboard in Laravel | Admin Panel L...
- Get link
- X
- Other Apps
Laravel - Day 2 - Integrating Template with Laravel Project
- Get link
- X
- Other Apps
How to solve a Quadratic Equation in Java
- Get link
- X
- Other Apps
package quardatic_equcation; /** * * @author IPHONE14 */ public class Quardatic_equcation { /** * @param args the command line arguments */ public static void main(String[] args) { //progtram to calculate quardatic equcation in java programming language double a = 2.3, b = 4, c = 5.6; double root_1, root_2; double determinant = b *b -4*a*c; if(determinant>0){ root_1 = (-b+Math.sqrt(determinant))/(2*a); root_2 = (-b+Math.sqrt(determinant))/(2*a); System.out.format("root_1 = %.2f and root_2 = %.2f", root_1,root_2); }else if(determinant == 0){ ...