I'm trying to come up with a code that asks the user to enter the values of the coefficients a,b,c,d of the polynomial function a*x*x*x+b*x*x+c*x+d and display the function using asterisks with the x-axis being vertical and the y-axis horizontal. So it would look something like this:
Example:x*x+4
Enter coefficient a: 0
Enter coefficient b: 1
Enter coefficient c: 0
Enter coefficient d: 4:
0 | *
1 | *
2 | *
3 | *
4 | *
5 | *
EDIT: I can't seem to be able to show the graph properly, it seems that I'm not allowed to use multiple spaces here ://.
I believe I have to use a for loop or something similar but all I came up yet is this: