Computer Science, asked by Anonymous, 1 day ago

hello please answer this computer question​

Attachments:

Answers

Answered by SR5798
1

Answer:

Program:

class sum

{

public static void main(String args [])

{

double s=1;

for(int i=2; i<=10; i++)

s=s+(1/i);

System.out.println("Sum : "+s);

}

}

Similar questions