събота, 2 април 2011 г.

JAVA!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!?

Question by sweet_cookie: JAVA!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!?
Compute the sum of the following series:
1/2 + 1/3 + 1/4 ... 1/99 + 1/100

import java.util.Scanner;
import static java.lang.System.*;

public class day3
{
public static void main(String args)
{


Best answer:
Answer by AdityaThis is what main looks like.

public static void main(String args)
{
double fraction = 0;

for(int i = 2, i < 101, i++)
fraction += 1 /

Read more on GOLearnWeb.com ...

Няма коментари:

Публикуване на коментар