naeem043

Python Lines in the Plane

Oct 10th, 2018
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input('Enter the line number: '))
  2.  
  3. if n > 0:
  4.     print("Total region "+str(int(((n*(n+1))/2)+1)))
RAW Paste Data