vb2010_計算數字太大
我設定
x為一個數字
p是它的次方數
n是取餘數
label1.text=x^p mod n
如果數字小都還可以正確
但是輸入太大如
x=4
p=2551
n=5
程式就會說無限大
用小算盤這是正確的4
小算盤跟程式差在哪邊咧~??
--
Sent from my Android
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 101.12.28.204
※ 文章網址: https://www.ptt.cc/bbs/Visual_Basic/M.1425643299.A.7A9.html
→
03/06 21:16, , 1F
03/06 21:16, 1F
→
03/07 01:28, , 2F
03/07 01:28, 2F
推
03/12 17:36, , 3F
03/12 17:36, 3F
→
03/12 23:50, , 4F
03/12 23:50, 4F
→
03/15 01:58, , 5F
03/15 01:58, 5F
→
03/16 08:51, , 6F
03/16 08:51, 6F
→
03/17 11:30, , 7F
03/17 11:30, 7F
→
03/24 08:47, , 8F
03/24 08:47, 8F
→
03/24 08:47, , 9F
03/24 08:47, 9F
→
05/03 09:32, , 10F
05/03 09:32, 10F
→
05/03 09:33, , 11F
05/03 09:33, 11F
→
05/03 09:33, , 12F
05/03 09:33, 12F
→
05/05 13:12, , 13F
05/05 13:12, 13F
→
05/05 13:12, , 14F
05/05 13:12, 14F
→
05/05 13:13, , 15F
05/05 13:13, 15F
→
05/05 13:15, , 16F
05/05 13:15, 16F
→
05/05 13:16, , 17F
05/05 13:16, 17F
Visual_Basic 近期熱門文章
PTT數位生活區 即時熱門文章