當前位置:編程學習大全網 - 電腦編程 - 急求VB勾股定理編程

急求VB勾股定理編程

sub Command1_Click()

dim i as integer, j as integer, k as integer, x as integer, y as integer

for i = 1 to 30

for j = 1 to 30

for k = 1 to 30

x = i * i + j * j

y = k * k

if x = y then debug.print i, j, k

next k

next j

next i

end sub

  • 上一篇:豬桿是什麽飛行搖桿用英語怎麽說
  • 下一篇:onauto時間控制開關是什麽意思?
  • copyright 2024編程學習大全網