計算s=1+1/(2*2)+1/(3*3)+....+1/(n*n)=? (n=100)
當中 s=s+1/(i*i)
herrDeng網內搜尋
自訂搜尋
Ads
2012年6月6日 星期三
訂閱:
張貼留言 (Atom)
熱門文章
-
計算你上學期加權平均
-
產生50個元素的陣列並排序
-
借錢500萬,年利18%,每月複利計算,請問連本帶利的金額 5, 10, 15, 20, 25, 30, 35, 40, 45, 50年的金額。並比較公式: A*exp(0.18n) A*(1+0.18/12)^(12*n), n=年數, A=本金 hint: math.h, p...
-
計算你的BMI
-
請輸出如下 * ** *** **** ***** ******
-
請用CPU-Z軟體檢測Cache & Memory 註:快取(L1-L3: SRAM) 第一級快取(L1)–通常存取只需要幾個週期,通常是幾十個KB。 第二級快取(L2)–比L1約有2到10倍較高延遲性,通常是幾百個KB或更多。 第三級快取(L3)(不...
-
11!=?
-
金鑰總數159*10^18 億=10^8 兆=10^12 京=10^16 垓=10^20 秭=10^24 穣=10^28 溝=10^32 澗=10^36 正=10^40 載=10^44 極=10^48 恆河沙=10^52 阿僧祇=10^56 那由...
-
請用 C/C++/java寫一簡易程式
9 則留言:
public class qwe{
public static void main(String[] args){
double s=0;
int n=100;
for(int i=1;i<=n;i++)
s+=1/((double)i*i);
System.out.println(s);
System.out.println(Math.PI*Math.PI/6);
}
}
public class a606 {
public static void main(String[] args) {
double s=0;double n=100;
for (int i=1;i<=n;i++)
{
s+=1/((double)i*i);
}
System.out.println(s);
}
}
public class text {
public static void main(String[] args) {
double s=0;
int n=100;
for(int i=1;i<=n;i++)
s+=1/((double)i*i);
System.out.println(s);
System.out.println(Math.PI*Math.PI/6);
}
}
public class gg {
public static void main(String[] args) {
double n=100,s=0;int i,j;
for(i=1;i<=n;i++)
{
s+=1/((double)i*i);
}
System.out.println(s);
}
}
public class ee {
public static void main(String[] args) {
double n=100,s=0;int i,j;
for(i=1;i<=n;i++)
{
s+=1/((double)i*i);
}
System.out.println(s);
}
}
public class gg {
public static void main(String[] args) {
double n=100,s=0;int i,j;
for(i=1;i<=n;i++)
{
s+=1/((double)i*i);
}
System.out.println(s);
}
}
public class hello{
public static void main(String[] args){
double s=0;
int n=100;
for(int i=1;i<=n;i++)
s+=1/((double)i*i);
System.out.println(s);
System.out.println(Math.PI*Math.PI/6);
}
}
public class XD {
publiv static void main(String[] args) {
int n=1000000000;
for(int i=1;i<n;i++)
s+=1/((double)i*i);
System.out.println(s);
System.out.println(Math.PI*Math.PI/6);
}
}
public class hii {
public static void main(String[] args) {
double s=0;double n=100;
for (int i=1;i<=n;i++)
{
s+=1/((double)i*i);
}
System.out.println(s);
}
}
張貼留言