How to output a polynomial in c++?

If I want "3x²" to be output in my program, and I have a variable holding the "3" as float coeff and one holding the "2" as int expn, how do I go about displaying the polynomial using cout?
You can't have superscripts in console. You'll have to go with 3x^2.
Topic archived. No new replies allowed.