SHARE
TWEET

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!
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top