I am trying to make a program that will find pi to an imputed specificity.
excerpt that's not working:
cout << "\n OK, so how many values of Pi do you want?\n";
cin >> valuecount;
cout << fixed << setprecision(valuecount) << 22/7 << endl;
If i input 4, i get 1 digit, or "3", instead of "3.141"
everything is already defined at the top: