i dont know what a for loop does...
Type: Posts; User: Unitize
i dont know what a for loop does...
the denominator is increasing by 2, and its alternating between - and +. so i would need to multiply -1 to every number. But i dont know how to implement this as im this is like my 6th day of...
i know the basics of it but i was hoping someone would walk me through the steps.
--- Update ---
import java.util.Scanner;
public class Pi
{
anyone help?
Hi im extremly new to programming, and this is a school project i need help with.
I'm supposed to take an input from the user and calculate the value of pi using this formula: 1/1 - 1/3 + 1/5 -...