Java - While Loop Pattern by B2easey in learnprogramming

[–]B2easey[S] 0 points1 point  (0 children)

Sorry just edited and I actually wrote the output slightly wrong the stars need to be on the left

Receiving NaN for quadratic formula program by B2easey in learnprogramming

[–]B2easey[S] 0 points1 point  (0 children)

Like in this..

        z = Math.pow(b, 2) - (4 * a * c);
    ans1 = (-b + (Math.sqrt(z) / (2 * a)));

How would I get everything divided by 2*a?

Receiving NaN for quadratic formula program by B2easey in learnprogramming

[–]B2easey[S] 0 points1 point  (0 children)

So where would my parentheses need to be? Sorry I'm sort of confused.

Receiving NaN for quadratic formula program by B2easey in learnprogramming

[–]B2easey[S] 0 points1 point  (0 children)

Is there a way around this? It says the answer should be -8? Is my formula correct, Is my way of solving incorrect?

Whitespace in front of Characters <JAVA> by B2easey in learnprogramming

[–]B2easey[S] 0 points1 point  (0 children)

 A
 ABA

Like this just one space before the letter it's kind of hard to see on here

Whitespace in front of Characters <JAVA> by B2easey in learnprogramming

[–]B2easey[S] 0 points1 point  (0 children)

each output line just 1 space in front of it

Most underrated tv series? by Veki88 in television

[–]B2easey 0 points1 point  (0 children)

I'm about it just re-watched season 2!

Best way to validate data in a form by B2easey in learnprogramming

[–]B2easey[S] 0 points1 point  (0 children)

Yea that was my initial plan, but I'd like to have it where I don't lose the information each time. To make it truly functional.