Question: Using the following as a template, Write a program to solve the equation, a x + b = 0, for x . If a is
Using the following as a template, Write a program to solve the equation, a x + b = 0, for x. If a is 0, print a warning message and exit.
#includeint main() { float a, b, x; printf("Enter a and b separated by a comma="); scanf("%f, %f", &a, &b); if (a==0) {...; return 0;} else x= ......; printf(......); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
