matthewdb said:
Hi! I'm taking AP Computer Science at my high school and I've got some confusion as to what the project prompt I've been given to work on tonight is asking and how to go at it. Here's the prompt:
"The German mathemetician Gottfried Leibniz developed the following method to approximate the value of pi:
pi/4 = 1 - 1/3 + 1/5 - 1/7 + ...
Write a program that allows the user to specify the number of iterations used in this approximation and displays the resulting value."
Any help would be appreciated, thank you
Remember, its gotta be in java.
Use a for loop? I don't really know much about imput and output in java. I've just started taking the course about 4 weeks ago, and I'm not getting it.
