Somebody please help me with this. In the last 5 mins. or so, I've been trying to write a program that just shows digits in pi. I have the formula for it (1/2.545584412*8).
Here is my code. Whenever I execute it, it just shows 575 and terminates.
#include <iostream.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
int main()
{
int pi;
{
pi==1/2.545584412*8;
cout << pi;
}
return 0;
}
Thanks for any reply.