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