Arithmatic Progression V3

2

5 votes
Problem

Lucifer Just Studied AP,GP & HP and has decided to make it little more interesting. Since He Is very much interested in mathematics , he has made a bit difficult problem for you to solve.

He said : He will be give you the 3rd term , 4th last term and the sum of the AP series. You need print length of the series & the series.

Now its your task to build a program to do the above task for lucifer

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?