計算s=1+1/(2*2)+1/(3*3)+....+1/(n*n)=? (n=100)
當中 s=s+1/(i*i)
herrDeng網內搜尋
自訂搜尋
Ads
2012年6月6日 星期三
訂閱:
張貼留言 (Atom)
熱門文章
-
明文=I'm student key=(2,15,8) 密文=?
-
C字串練習 字串 char word[]="You win!"; 輸出為: You win! You win You wi You w You You Yo Y 給進階使用者: gets () 是個危險的函式!
-
請用C/C++ 程式計算 S=1*1+2*2+3*3+4*4+.....+20*20=?
-
計算你的BMI
-
array ex 1, 2,3,7,8
-
replace(str1, str2,i) 程式碼
-
列印課表數字代碼矩陣,以及代碼的課名 提示: 參考此連結
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);
}
}
張貼留言