Member Avatar

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

Recommended Answers

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

Jump to Post

All 3 Replies

Member Avatar

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

Member Avatar

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.