0

IF and Else

Do you have a math problem that can be solved with "if" and "else" ?? or just "if" ? i need idea to make a program

29th Sep 2016, 6:06 AM
David Thanlian Kurniawan
David Thanlian Kurniawan - avatar
5 odpowiedzi
+ 1
you can use if, else if, and else however the player wont be able to put anything in, youll have to make the problem. But are you using codeplayground, or eclipse, or another IDE
29th Sep 2016, 10:23 AM
Aquarius
Aquarius - avatar
+ 1
hi, a simple problem might be to find if the roots of a quadratic polynomial are real or imaginary. you give the polynomial coefficients as parameters (e.g., an array)… and you need to check if b^2-4ac is >0 or <0… and this will tell you about the existence of real or imaginary roots.
29th Sep 2016, 11:07 AM
Ruggero Pintus
+ 1
Thanks @Ruggero Pintus
29th Sep 2016, 2:23 PM
David Thanlian Kurniawan
David Thanlian Kurniawan - avatar
+ 1
if you feel my answer is worthy....push the thumb up ;-)
29th Sep 2016, 10:01 PM
Ruggero Pintus
0
@Aquarius :: another IDE
29th Sep 2016, 2:23 PM
David Thanlian Kurniawan
David Thanlian Kurniawan - avatar