express it in Qbasic expression

Answer:
x = (-b + sqr(b * b - 4 * a * c)) / (2 * a)
x2 = (-b - sqr(b * b - 4 * a * c)) / (2 * a)
Usually when squaring a number I just use multiply it by itself like above. If you actually want to use the exponent 2, then it would instead be:
x = (-b + sqr(b ^ 2 - 4 * a * c)) / (2 * a)
x2 = (-b - sqr(b ^ 2 - 4 * a * c)) / (2 * a)