He will have to navigate to the Insert Tab and then Click on Table option.
Answer:
cm = 1000;
meter = cm / 100.0;
kilometer = cm / 100000.0;
print("Length in meter = " ,
meter , "m");
print("Length in Kilometer = ",
kilometer , "km");
Explanation:
This is in Python, hope you enjoy!
Answer:
#include <iostream>
#include<cmath>
using namespace std;
int main()
{
double total = 0;
double check=1;
double ct=0;
double old=1;
while( fabs(total - old) > 0.00005 )
{
old=total;
total=total+check*4.0/(2.0*ct+1);
ct=ct+1;
check=0.0-check;
}
cout<<"Approximate value of pi is "<<total<<endl;
return 0;
}
Explanation:
- Initialize all the necessary variables.
- Run a while loop until the following condition is met.
fabs(total - old) > 0.00005
- Inside the while loop calculate the total value.
- Lastly, display the approximate value of pi.