[問題] 點讓整hollow square and 做一d運算r?? |
尚未結案
|
asfg
一般會員 ![]() ![]() 發表:2 回覆:0 積分:0 註冊:2005-10-01 發送簡訊給我 |
點樣可以??: formula:{
圓周率(3.14) = 4- (4/3) (4/5) - (4/7) (4/9) - (4/11) ...
} Print a table that shows the value of 圓周率 approximated by 1 term of this series, by two terms, by three terms, etc. How mcuh if this terms of the series do you have to use before you first get 3.14? 拜託曬各位大大..... 另外追加: Write a programme to print out hollow square ...(input must within 2-20) requset user to input a non-negative integer to show different square~
for example: input = 5 : *****
* *
* *
* *
*****
input = 6 : ******
* *
* *
* *
* *
******
besides use switch case to show 2-20 既 square.........
|
taishyang
站務副站長 ![]() ![]() ![]() ![]() ![]() ![]() 發表:377 回覆:5490 積分:4563 註冊:2002-10-08 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |