PLEASE answer(ii) please its a question for construction please solve it
Attachments:
Answers
Answered by
0
Answer:
import java.util.Scanner;
public class KboatSeries
{
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
System.out.print("Enter x: ");
int x = in.nextInt();
double sum = 0.0;
for (int i = 2; i <= 20; i = i+3)
sum += (double)x / i;
System.out.println("Sum = " + sum);
}
}
Answered by
1
Answer:
hopefully it will work
Attachments:
Similar questions