herrDeng網內搜尋

自訂搜尋

Ads

2016年9月30日 星期五

ex4 利用for-loop算 ζ(2)

ex4 利用for-loop算 ζ(2)

15 則留言:

A10533016 提到...

public class hello {

public static void main(String[] args) {
double sum=0;
for(int n=1;n<1e3;n++)
sum=sum+1.0/(n*n);
System.out.print(sum);

A10533002 提到...

public class ex1 {

public static void main(String[] args) {
double sum=0;
for(int n=1;n<1e3;n++)
sum=sum+1.0/(n*n);
System.out.print(sum);

A10533002 提到...

public class ex1 {

public static void main(String[] args) {
double sum=0;
for(int n=1;n<1e3;n++)
sum=sum+1.0/(n*n);
System.out.print(sum);

A10533011 提到...

public class EX
{
public static void main(String[] args)
{
double n,sum=0;
for(n=1;n<=1e6;n=n+1)
sum=sum+1.0/(n*n);
System.out.println(sum);
}
}

a1009036 提到...

public class uilioloilil {

public static void main(String[] args) {
double sum=0;
for(int n=1;n<=1e3;n=n+1)
sum=1.0/(n*n)+sum;
System.out.println(sum);

}

A10533003 提到...

package zzz;

public class ex1 {
public static void main(String[] args) {
int n;
double sum=0;
for(n=1;n<1e3;n=n+1)
sum=sum+1.0/(n*n);
System.out.println(sum);
}
}

A10533009林子喬 提到...

public class aaa {

public static void main(String[] args) {
int n;
double sum=0;
for(n=1;n<=1e6;n=n+1)
sum=sum+1.0/((double)n*n);
System.out.println(sum);

}
}

A10533004易廷軒 提到...

public class ex1 {

public static void main(String[] args) {
int n;
double sum=0;
for(n=1;n<=1e3;n=n+1)
sum=sum+1.0/(n*n);
System.out.println(sum);


}
}

A10533005 提到...

public class Hello {

public static void main(String[] args) {
double sum =0;
for(int n=1;n<=1e3;n++)
sum = sum + 1.0/(n*n);
System.out.print(sum);


}

}

A10533006林柏宇 提到...

public class ex2
{
public static void main(String[] args)
{
int n;
double sum=0;
for(n=1;n<1e3;n=n+1)
sum=sum+1.0/(n*n);
System.out.println(sum);

A10533007 提到...

public class willia {

public static void main(String[] args) {
int n;
double sum=0;
for(n=1;n<=1e3;n++)
sum=sum+1.0/(n*n);
System.out.println(sum);

}

}

A10533014 提到...

public class ex1 {

public static void main(String[] args) {
int n;
double sum=0;
for(n=1;n<=1e3;n=n+1)
sum=sum+1.0/(n*n);
System.out.println(sum);
}

}

A10533012 提到...

public class ex1 {

public static void main(String[] args) {
int n;
double sum =0;
for(n=1;n<=1e3;n++)
sum=sum+1.0/(n*n);
System.out.println(sum);
}

A10533013 提到...

public class ex2 {

public static void main(String[] args) {
int n;
double sun=0;
for(n=1;n<=1e3;n++)
sun=sun+1.0/(n*n);
System.out.println(sun);



}

}

A10533010 提到...

public class ex1 {

public static void main(String[] args) {
int n;
double sun=0;
for(n=1;n<=1e3;n=n+1)
sun=sun+1.0/(n*n);
System.out.println(sun);

}

}

Related Posts Plugin for WordPress, Blogger...

熱門文章