Quadratic Equations [Beginners Practise]

This is where most of us started. Classic Spectrum basic.

Moderator: Programming Moderators

Post Reply
User avatar
Posts: 14
Joined: Thu Jun 01, 2017 7:15 pm

Quadratic Equations [Beginners Practise]

Post by Brayn-3 » Tue Aug 01, 2017 10:10 am

Write a program that solves the quadratic equation
a x² + b x + c = 0 for any a, b, and c.

First calculate the discriminant D and print how many solutions the equation has. Then print the solutions.

As extensions calculate the maximum or minimum point and define an UDG for the superscript 2 for to print the equation nicely.

Facebook entry

Post Reply