計(jì)算t=1+1/2+1/3+...+1/n
整型變量n
t(保留六位小數(shù))
10
2.928968
一些簡(jiǎn)單的題目,鍛煉大家基礎(chǔ)加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油