如何编写一个加法器?
|
如何编写一个加法器? lt;input type="text" size="1" name="op1 value=lt;%Response.Write Request("op1")%gt;gt; lt;input type="submit" name="operation value="plus"gt; lt;input type="text" size="1" name="op2 value=lt;%Response.Write Request("op2")%gt;gt; equals lt;% nbsp;nbsp; Dim result nbsp;nbsp; If Request("operation") = "plus" Then nbsp;nbsp;nbsp;nbsp;nbsp; result = CLng(Request("op1")) + CLng(Request("op2")) nbsp;nbsp; Else nbsp;nbsp;nbsp;nbsp;nbsp; result = "?" nbsp;nbsp; End If nbsp;nbsp; Response.Write result %gt;nbsp; lt;/formgt; (编辑:我爱制作网_池州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |

