HI everyone,
I need help in c++. Problem : I want to write a program that calculate x digits of pi.
Like
if my input is 3 output should like this 3,14 or this 3,145
if my input is 10 output should like this 3,14529xxx or lik this 3,14529xxxx.
I write my program but i dont what formula i have to use.. i alot of search but cant find or understand..
#include <iostream>
using namespace std;
int main(){
int i,j,pi,;//declear variable
/*
??????????
i have no idee..
*/
return 0;
}