Can't understand a question ?

From ANSI C++,
Please see the question no 1.14
Write a program to display the equation of a line in the form...
ax+by=c.
for a=5,b=8,c=18
What are you having issues with? That's just standard form of a line, and it gives you the variables.
@ResidentBiscuit

And what does this mean?!!!

Write a program to display the equation of a line in the form...
Serious?

Output the equation?

cout << a << "x+" << b << "y=" << c;

At least that's how I read it.
You mean that it asks to print a string literal "5x + 8y = 18"?

cout << "5x + 8y = 18\n";
No not a literal, I think you're overthinking this. Just how I did it above
Topic archived. No new replies allowed.