0% found this document useful (0 votes)
24 views3 pages

Experiment No. 2 Aim:: Problem Statement

Using java

Uploaded by

Anuj Kundar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views3 pages

Experiment No. 2 Aim:: Problem Statement

Using java

Uploaded by

Anuj Kundar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Academic Year: 2021-22 Name of Student:Anuj Kundar

Semester: III Student ID:20104047


Class / Branch: SE IT Date of Performance:07-09-2021
Subject: Java Lab(SBL) Date of Submission:13-09-2021
Name of Instructor: Prof. Vidya Shet Div:A Roll No:42

Experiment No. 2

• Aim : Write a java Program to display roots of Quadratic Equation

Problem Statement :

Write a Java program that prints all real solutions to the quadratic equation ax2+bx+c = 0. Read in a, b, c and
use the quadratic formula. If the discriminant b2-4ac is negative, display a message stating that there are no
real solutions?
Program:

Subject Incharge: Asst.Prof. Vidya Shet Page 1 Department of Information Technology


Output:

a. Roots are Imaginary

b. Roots are Real and Equal

Subject Incharge: Asst.Prof. Vidya Shet Page 2 Department of Information Technology


Subject Incharge: Asst.Prof. Vidya Shet Page 3 Department of Information Technology

You might also like