Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8832675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:35:17+00:00 2026-06-14T08:35:17+00:00

Okay, So the Problem with this is that the brackets are annoying. It never

  • 0

Okay, So the Problem with this is that the brackets are annoying. It never seems to work for some reason. I have checked on other websites but this does not get fixed.

import java.util.Scanner;
class x14
    {
        int a;
        int b;
        int c;
        double b2 = Math.pow(b,2);
        double sq = Math.sqrt(b2 - 4*a*c);
        public void main()
        {
            Scanner input = new Scanner(System.in);
            System.out.println("Please input 'a'");
            a = input.nextInt();
            System.out.println("Please input 'b'");
            b = input.nextInt();
            System.out.println("Please input 'c'");
            c = input.nextInt();
            System.out.println("Thank you!");

            double x1 = 0.0;
            double x2 = 0.0;
            x1=(-b+sq)/2a;// Says "Please place ';' here"
            x2=(-b-sq)/2a;// Says "Please place ';' here"
            /* When I Try this : ((-b+sq)/2a);
             * It says i have to place ')' at the end.
             */


            System.out.println("Equation x1 : " + x1);
            System.out.println("Equation x2 : " + x2);
            if(sq > 0)
            System.out.println("The Roots are Real and unequal");
            else if(sq == 0)
            System.out.println("The Roots are Real and Equal");
            else if(sq < 0)
            System.out.println("The Roots are imaginary");
        }
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:35:19+00:00Added an answer on June 14, 2026 at 8:35 am

    You are missing multiply operator.

    x1=(-b+sq)/2a;// Says "Please place ';' here"
    x2=(-b-sq)/2a;// 
    

    should be: (observe the *)

      x1=((-b+sq)/(2*a);// Says "Please place ';' here"
      x2=((-b-sq)/(2*a);// 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having this problem. Seems to deploy okay then the problem reappears... Can't figure out
Okay, so I have searched a while for a solution to this problem, but
Okay I am newer to python and have been researching this problem but I
Okay, so I have this script which works fine with IE but won't work
Okay. I'm sick of this problem. This has to have an easy fix, I'm
I have made this code that makes some visual tiles that fades in and
Okay so I am having this problem. I write up a script to be
Okay, it took me a little while to narrow down this problem, but it
Okay guys, basically the problem I'm having is this. I've been assigned to write
Okay so i have a semi weridish problem with re.sub. Take the following code:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.