µù¥U
µn¿ý
º¶
½×¾Âª©³W
¸T¤î¦Cªí
»¡©ú
¦a¹Ï
¼Æ¦ì®Ñ»
¨p¤H®ø®§ (0)
¤½¦@®ø®§ (0)
½×¾Â¥ô°È (0)
¨t²Î®ø®§ (0)
¦n¤Í®ø®§ (0)
©«¤l®ø®§ (0)
³Â»¶®a±Ú°Q½×ª©ª©
»
ASP »P ASP.NET
» (ASP±Ð¾Ç²Ä8½g) «½Æ°õ¦æªº°j°é±Ôz
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
µo©«
[±Ð¾Ç]
(ASP±Ð¾Ç²Ä8½g) «½Æ°õ¦æªº°j°é±Ôz
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-22
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-22
1
#
¸õÂà¨ì
»
¥¿§Ç¬Ý©«
¥´¦L
¦rÅé¤j¤p:
t
T
µoªí©ó 2010-5-10 18:17
|
¥u¬Ý¸Ó§@ªÌ
[±Ð¾Ç]
(ASP±Ð¾Ç²Ä8½g) «½Æ°õ¦æªº°j°é±Ôz
«½Æ°õ¦æªº°j°é±Ôz
©Ò¿×°j°é¡]Loop¡^´N¬O¯àÅý¬Y¤@¬qªºµ{¦¡¯à°÷«½Æ°õ¦æ³\¦h¦¸ªº¬yµ{±±¨î±Ôz¡A¦b¥»³¹¸`¤¤¡A±N¤¶²Ð¨âÓ¤ñ¸û±`¥Î¨Ó±±¨îµ{¦¡ªº°j°é±Ôz¡A¥¦Ì¬O¡GFor-Next¤ÎWhile-Wend¡C
p¦¸°õ¦æªºFor-Next±Ôz
·í§Ú̪¾¹D°j°é¥²¶·°õ¦æªº¦¸¼Æ®É¡AFor-Next±Ôz´N¬O³Ì¦nªº°j°é±Ôz¡An¨Ï¥ÎFor-Next±Ôz´N¥²¶·¨Ï¥Î¤@Ó±±¨îÅܼƨӨM©wFor-Next±Ôzn°õ¦æªº¦¸¼Æ¡A¨ä®æ¦¡¦p¤U¡G
For-Next°j°é±Ôz°Ï¶ô®æ¦¡
For p¦¸ÅܼơG=ªìÈ To ²×È
n«½Æ°õ¦æªº±Ôz°Ï¶ô
Next
½Æ»s¥N½X
¥Ñ¤W¦C®æ¦¡¤¤¥i±oª¾¡AFor-Next±Ôz¥i¥HÀ°§Ú̫إߤ@Ó°j°é¡A§ÚÌ¥un¨M©w¤W¤U´N¥i¥H¨M©w°j°é«½Æªº¦¸¼Æ¡A¨Ò¦p¡G
For X=1 To 10
Y=Y+X
Next
½Æ»s¥N½X
¦b¤W¨Ò¤¤¡A³Ì«nªº¤@Ó¦a¤è´N¬OÅܼÆX¡A¥¦¦b°j°é¤¤¬O§êºt¤@Óp¼Æ¾¹ªº¨¤¦â¡A¦Óp¼Æ½d³ò±q1¨ì10¡A©Ò¥H¦b¡yFor¡KNext¡z¤¤ªº±Ôz°Ï¶ô±N·|³Q°õ¦æ10¦¸¡A¦]¦¹§ÚÌ¥i¹ïFor-Next±Ôz¤ÀªR¦p¤U¡C
²Ä¤@¦¸°õ¦æ°j°é®É¡AÅܼÆX³Q«ü©w¬°°_©lÈ¡C
°õ¦æ°j°é«e¡AÅܼÆX³£·|¥ý¶i¦æ¬O§_¶W¹L²×¤îȪºÀËÅç¡AY¶W¹L¡A«hµ²§ô°j°é¡A§_«h´NÄ~Äò°õ¦æ°j°é¤ºªº±Ôz¡C
°õ¦æ¹L°j°é«á¡AÅܼÆXªºÈ±N·|¥[¤W¨B¶iÈ¡]1¡^¡C
For-Next±Ôz¨ä¹êÁÙ¦³¤@Ó¨B¶iȪº³]©w¡A¦pªG§Ų́S¦³¯S§O«ü©w¨B¶iȪº¤j¤p¡A¨º¨B¶iȪº¤j¤p´N¹w³]¬°¡]1¡^¡A¤]´N¬O»¡°j°éÅÜ·|·|¦b°õ¦æ¹L°j°é«á¦Û°Ê¥[¡]1¡^¡C
For-Next°j°é±Ôz°Ï¶ô®æ¦¡
For p¦¸ÅܼÆ=ªìÈ To ²×È¡@Step ¨B¶iÈ
n«½Æ°õ¦æªº±Ôz°Ï¶ô
Next
½Æ»s¥N½X
¨Ò¦p¡G
For X=1 To 10 Step 2
Y=Y+X
Next
½Æ»s¥N½X
½Ð°Ý±z¡G¤W¨ÒFor-Next°j°é±Ôzµ²§ô«á¡AÅܼÆYµ¥©ó¦h¤Ö¡Hµ´¹ï¤£¬O¢´¢´³á¡I
¦b§Ú̳oÓ¨Ò¤l¤¤ÅܼÆX³Q«ü©w¬°°_©lÈ¢°¡A¤]´N»¡ÅܼÆX¤@¶}©l¬O¢°¡A¥i¬O¨C°õ¦æ¤@¦¸°j°é«áÅܼÆX¨Ã¤£¬O¥[¢°³á¡I¦Ó¬O¥[¢±¡A©Ò¥HY=1+3+5+7+9¡Aµª®×À³¸Ó¬O¢±¢´¡C
For-Nex±Ôz¤£¶È¥i¥H¬O»¼¼W°j°é¡A¤]¥i¥H¬O»¼´î¼W°j°é¡A¨ä®æ¦¡¦p¤U¡G
For-Next»¼´î°j°é±Ôz°Ï¶ô®æ¦¡
For p¦¸ÅܼÆ=ªìÈ To ²×È ¡@Step ¡Ð¨B¶iÈ
±Ôz°Ï¶ô
Next
½Æ»s¥N½X
¤]´N»¡»¼´î°j°éFor-Next±Ôzªº°_©lÈ¥²¶·¤j©ó²×¤îÈ¡A¦Ó§PÂ_¬O§_²æÂ÷°j°éªº±Ôz´NÅܦ¨¡Gp¦¸ÅܼÆÈ < ²×¤îÈ¡A¦P®É¡G¨B¶iȤ@©wn³]©w¡A¨Ã¥B¨B¶iÈ¥²¶·¬Ot¼Æ¡I¨Ò¦p¡G
For X=10 To 1 Step -1
Y=Y+X
Next
½Æ»s¥N½X
¹ê°µ¾Ç²ß
ÅýÂsÄýªÌ«ü©wNÈ¡AµM«ápºâ1x2x¡K¡Kx(N-1)xN¡A¨Ã±Npºâµ²ªGÅã¥Ü©óºô¶¤¤¡C
¤U¸ü
(24.24 KB)
2010-5-10 18:16
<%
num=request("num")
if num<>empty then
ans=1
for i=1 to num
ans=ans*i
next
end if
%>
<html>
<head>
<title>ex407</title>
</head>
<body bgcolor="#ffffff">
<form>
<table border="1">
<tr>
<td>½Ð¿é¤J¢ÜÈ</td>
<td><input type="text" size="15" name="num"></td>
</tr>
<tr>
<td colspan=2><input type=submit value="½T©w"></td>
</tr>
</tr>
<tr>
<td colspan=2>¢°¼¨ì¢Üµª®×¬O¡G<font color="red"><%= ans %></font></td>
</tr>
</table>
</form>
</body>
</html>
½Æ»s¥N½X
º¥ý§Ú̱NÅܼÆAnsªºÈ³]¬°1¡A©Ò¥H¡uAns= Ans *1*2x¡K*N-1*N¡vµ¥©ó¡uAns= 1*2*¡K¡K*N-1*N¡v¡A¦]¦¹¡uAns= 1*2*¡K¡K*N-1*N¡v´Nµ¥©ó¡uAns= 1¡v¡B¡uAns= Ans*2¡v¡B¡uAns= Ans*3¡v¡C¡C¡C¡uAns:= Ans*N¡v³sÄò¹Bºâªºµ²ªG¡A©Ò¥H¨Ï¥ÎFor-Next±Ôz±N¬O³Ì¨Î¿ï¾Ü¡C
¼Ó¥D¼ö©«
½×¾Â¤£Åý¸ê¾ú¤ñ¸û²Lªº¤H¤U¸ü¬d¬Ýªþ¥óªº¥Î·N
EXCEL±MÄÝ°Q½×°Ï¦Û§Y¤é°_¤¤¾Ç¥Í¥H¤W·|û¤è
³Â»¶®a±Ú°Q½×°Ï ³q¥Îª©³W
OFFICE °ò¦±Ð¾Ç¼Æ¦ì¤Æ
ATX ¹q·½¨ÑÀ³¾¹¤â°Ê±Ò°Ê(¤£±µ¥D¾÷ªO±Ò°Ê)
¦Ò¼{Ãö³¬½×¾Âºô¯¸
³Â»¶®a±Ú°Q½×°ÏÁô¨pÅv¬Fµ¦»¡©ú
³Â»¶®a±Ú°Q½×°Ï ¸Û¼xª©¥D
¥Ñ½׾ÂÂà¶iªº¤¤¾Ç¥Íµ¥¯Å¥H¤W·|û,½ÐÃöª`!
14-2 ¸ê®Æ®w¹Ï¤ù¦s¨ú
¦¬ÂÃ
¤À¨É
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-22
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-22
2
#
µoªí©ó 2010-5-10 18:22
|
¥u¬Ý¸Ó§@ªÌ
While-Wend°j°é±Ôz
·í§Ú̪¾¹D°j°é¥²¶·°õ¦æªº¦¸¼Æ®É¡AFor-Next±Ôz´N¬O³Ì¦nªº°j°é±Ôz¡A¦ý¬OY¤£ª¾¹D°j°é¥²¶·°õ¦æªº¦¸¼Æ©O¡A¨º§ÚÌ´N¥i¥H¨Ï¥ÎWhile-Wend°j°é±Ôz¡A¨ä®æ¦¡¦p¤U¡G
While-Wend°j°é±Ôz°Ï¶ô®æ¦¡
While ±ø¥ó¦¡
n«½Æ°õ¦æªº±Ôz°Ï¶ô
Wend
½Æ»s¥N½X
While-Wend°j°é±Ôz¬O¥Ñ«O¯d¦rWhile¶}©l¡A¦b¨ä«á¬O¤@Ó±ø¥ó¦¡¡A¦Ó³oÓ±ø¥ó¦¡«h¬O¤@Ó¥¬ªLȹBºâ¦¡¡A¦pªG³oÓ±ø¥ó¦¡¦¨¥ß¡]¥¬ªLȹBºâµ²ªG¬°True¡^¡A¨º»ò¦bWhile-Wend°j°é±Ôz¸Ì¡]±Ôz°Ï¶ô¡^ªºµ{¦¡½X´N·|°õ¦æ¦Üµ²§À¡AµM«á¦A§PÂ_±ø¥ó¦¡¡A·í³oÓ±ø¥ó¦¡¤£¦A¦¨¥ß®É¡AWhile-Wend°j°é±Ôz´N·|°±¤î°õ¦æ¡C²{¦b§Ų́Ӥñ¸û¤@¤UFor-Next»PWhile-Wend±Ôz¡Gpºâ1¥[¦Ü10¡G
For-Next¼gªk¡G
For X=1 To 10
Y=Y+X
Next
½Æ»s¥N½X
While-Wend¼gªk¡G
X=1
While X <= 10
Y=Y+X
X=X+1
Wend
½Æ»s¥N½X
¬Ý§¹³o¨âÓ±Ôzªº¤ñ¸û¡A±z¬O¤£¬Oµo²{¡G¦P¼Ëªº¥\¯à¡A¦ý¬OWhile-wend±Ôz¦ü¥G³Â·Ð¦h¤F¡A¤£¹L¡AY¤£ª¾¹D°j°é·|°õ¦æ´X¦¸¡AÁÙ¬OWhile-Wend±Ôz¤ñ¸û¾A¦X¡A¦p¤U¨Ò¡G
¹ê°µ¾Ç²ß
½Ð³]p¤@ASPµ{¦¡¡Apºâ6561¬O3ªº´X¦¸¤è¡A¨Ã±Nµª®×Åã¥Ü©óºô¶¤¤¡C
¤U¸ü
(4.94 KB)
2010-5-10 18:21
<html>
<head>
<title>ex410</title>
</head>
<body bgcolor="#ffffff">
<%
test=6561
while test>1
test=test/3
ans=ans+1
wend
response.write "6561¬O3ªº" & ans & "¦¸¤è"
%>
</body>
</html>
½Æ»s¥N½X
´£¥Ü
ì©l½X¤¤ªº¡y¡®¡z²Å¸¹¬O¤@Ó¸ê®Æ¦ê±µ²Å¸¹¡A¥¦·|±N¸Ó²Å¸¹«e«áªº¸ê®Æ³s±µ¦b¤@°_¡A¨Ò¦p¡G¡¨§Ú¬O¡¨¡®¡¨book¡¨¡A«h¦ê±µ«áªº¦r¦ê¸ê®Æ´NÅܦ¨¡G¡¨§Ú¬Obook¡¨¡C
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
TOP
ÀR«ä¦Û¦b :
¥Ç¿ù¥XÄb®¬¤ß¡A¤~¯à²M²bµL·Ð´o¡C
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
EXCEL±MÄÝ°Q½×°Ï
Excel£¸¯ë°Ï
Excelµ{¦¡°Ï
¶i¶¥À³¥Î±M°Ï
OFFICE ¨t¦C
Word
PowerPoint
Access
Office¤£¤À°Ï
µ{¦¡»y¨¥
VB »P VB.Net
C »P C#
Java »P J#
µ{¦¡³]p¤£¤À°Ï
¸ê®Æ®w
ORACLE
My SQL
MS SQL
ºô¶³]p
ASP »P ASP.NET
PHP
PHP+MySQL ¤Jªù¹ê§@
JavaScript
FLASH / ActionScript
HTM/ HTML/ CSS
ºô¶³]p¤£¤À°Ï
¹q¸£»P§@·~¨t²Î
¹q¸£¦UºØµwÅé°Q½×
¤@¯ë¹q¸£³nÅé°Q½×
½×¾Â¨Æ°È
ºÞ²z¤½§i
§ë¶D¤Ï¬M
·s¤â´ú¸Õ
·R ¡E ¥Í¬¡
¤½¯q§G§iÄæ
¥Í¬¡»P·P°Ê
[¦¬Âæ¹¥DÃD]
[Ãöª`¦¹¥DÃDªº·s¦^´_]
[³q¹L QQ¡BMSN ¤À¨Éµ¹ªB¤Í]
¥Ó½Ð¤Í±¡Ãì±µ
Facebook¯»µ·