Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- print "Content-type: text/html"
- print
- print "<html><head>"
- print ""
- print "</head><body>"
- import cgi
- form = cgi.FieldStorage()
- result = 0
- numberN = form["numberN"].value
- if isinstance(numberN, int) and numberN > 0
- for x in range(0, numberN)
- result += x
- print result
- print "</body></html>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement