Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.39 KB | None | 0 0
  1. <HTML>
  2. <BODY>
  3. <%
  4.     Dim intpreviousValue, intcurrentResult, intnumber, intsum
  5.     intpreviousValue = -1
  6.     intcurrentResult = 1
  7.     intnumber = 10
  8.    
  9.     For intcount = 0 to intnumber - 1
  10.         intsum = intcurrentResult + intpreviousValue
  11.         intpreviousValue = intcurrentResult
  12.         intcurrentResult = intsum
  13.         Response.Write intcurrentResult & "<br>"
  14.     Next
  15. %>
  16. </BODY>
  17. </HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement