Skip to content

Thinking more…

Just thinking more…

Posted on 2008/05/02 by elleryq

求1到50之間所有偶數的平方值總和

剛好看到:求1到50之間所有偶數的平方值總和,於是順手寫一寫:

//
// Sum all even in 1~50
//
import System
sum = 0
for i in range(1,51):
if i%2==0:
sum+=i*i
print sum
CategoriesBoo

Post navigation

Previous PostPrevious 電影流水帳(2008/05/02~2008/05/02)
Next PostNext Boo(9)-List
May 2008
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Apr   Jun »

站內搜索

Categories

  • .Net
  • Android
  • Blog
  • Boo
  • C/C++
  • Cook
  • Linux 及其相關
  • Lyrics
  • Python
  • Visual FoxPro
  • Wine品嚐美酒
  • 亂亂逛
  • 個人新聞台
  • 理財
  • 資訊相關Idea與筆記
  • 雜記,隨筆
  • 電影流水帳
Privacy Policy Proudly powered by WordPress