Advertisement
naeem043

Python Lines in the Plane

Oct 10th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. n = int(input('Enter the line number: '))
  2.  
  3. if n > 0:
  4.     print("Total region "+str(int(((n*(n+1))/2)+1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement