hello please answer this computer question
Attachments:
Answers
Answered by
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