public class for1 {
public static void main(String[] args) {
int [] a={23,67,89,54};
int sum=0;
double av;
int i=0;
do{
sum+=a[i++];
}
while( i<=a.length) ;
av=(double)sum/a.length;
System.out.println(av);
}
}
herrDeng網內搜尋
自訂搜尋
Ads
2014年9月17日 星期三
2014年9月16日 星期二
2014年9月14日 星期日
2014年9月10日 星期三
2014年9月9日 星期二
2014年9月8日 星期一
2014年9月2日 星期二
Visual Studio 2013 Express for Window Desktop下載與安裝
Visual Studio 2013 Express for Window Desktop下載與安裝
2014年8月30日 星期六
2014年8月27日 星期三
訂閱:
文章 (Atom)
熱門文章
-
C++用 -1 mask法達到branchless解Leetcode1513 Number of Substrings With Only 1s|Py3 1-liner 其實很容易,想練功,試試一行解,或是把if分岔拿掉 [C++無分岔解請進]
-
請用C/C++ 程式計算 S=1*1+2*2+3*3+4*4+.....+20*20=?
-
計算你的BMI
-
計算你上學期加權平均
-
GCD(123456789,345634567)=?
-
算上學期加權平均
-
何謂演算法?並列出一無窮迴圈的範例!
-
問int怎麼存-689這個數字。 int用4個bytes。 答案請用16進位表達。
-
55x+27y=gcd




