If you draw a straight line on a plane, the plane is divided into two regions. For example, if you pull two straight lines in parallel, you get three areas, and if you draw vertically one to the other you get 4 areas. Write a PHP program to create maximum number of regions obtained by drawing n given straight lines.
Sample Input:
5
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer