Answer:
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
char choice;
cout << setprecision(12) << endl;
while(true) {
int sign = 1;
double pi = 0;
cout << "Enter number of terms: ";
long n;
cin >> n;
for(long i = 1; i < n; i += 2) {
pi += sign/(double)i;
sign = -sign;
}
pi *= 4;
cout << "value of pi for n = " << n << " is " << pi << endl;
cout << "Do you want to try again(y or n)? ";
cin >> choice;
if(choice == 'n' || choice == 'N') {
break;
}
}
return 0;
}
Explanation:
That is actually true. In order to format the font, margins and alignment of a form you need to s<span>elect the control that you want to format, then right-click the selection, and then click Format Control. What you do next is that on the Font tab you select the font type, font style, font size, other formatting options for the selected text and in order to finish to press ok </span>
The interpreted are;
<h3>What is interpreted programming language?</h3>
An interpreted language is known to be a kind of languagewhere its implementations often carry out or execute instructions directly.
Note that The interpreted are;
Learn more about Java from
brainly.com/question/25458754
#SPJ11
Answer: For loop
Explanation:
Using the for loop we can get the exact number of values/outcomes we require.
For example: printf(enter 20 numbers");
for(int i=0; i<20;i++)
{
scanf("%d", &number);
}
So, this is an implementation of for loop in C. Using it we can enter exact 20 numbers not less or more than that.
Therefore, for loop is the answer.