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
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
+ 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.
+ 1
Thanks @Ruggero Pintus
+ 1
if you feel my answer is worthy....push the thumb up ;-)
0
@Aquarius :: another IDE