Well, hi everybody, I have some problems with one task (C++) which I can not solve. It is quite immidiate, so can anyone solve this for me?
Task is:
Make program in C++, which will write n int numbers and calculate function:
f(n)=2n3-4n+5.
Program should cout on monitor thing exactly like this (said my professor):
n=1 f(n)=3
n=2 f(n)=13
n=3 f(n)=47
etc.
Note: n number which is entered from keyboard should be smaller than 20, and bigger than 1. If you enter for example 21, program should not write anything. And yes, I must use FOR command.
I am waiting, I have two hours to give this to professor!!!