Member Avatar for alex-i

Hi Everyone

I have 2 variables
$price = 60;
$dec = 1%;

I want to create a function which give me result for next 10 years

example:

2017 = 59.4
2018 = 58.8
2019 = 28.2
.
.
.
2027 =

Code can be PHP or Script

Regards

Member Avatar for diafol

So you want somebody to write this for you? Why don.t you show your code so far?

Member Avatar for alex-i

hi diafol

I dont have any code yet its part of task for this calculate.

If you can help me on that task it will be very helpfull.

Thanks in advance

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.