Answer:
// here is code in c++ to find the approx value of "e".
#include <bits/stdc++.h>
using namespace std;
// function to find factorial of a number
double fact(int n){
double f =1.0;
// if n=0 then return 1
if(n==0)
return 1;
for(int a=1;a<=n;++a)
f = f *a;
// return the factorial of number
return f;
}
// driver function
int main()
{
// variable
int n;
double sum=0;
cout<<"enter n:";
// read the value of n
cin>>n;
// Calculate the sum of the series
for (int x = 0; x <= n; x++)
{
sum += 1.0/fact(x);
}
// print the approx value of "e"
cout<<"Approx Value of e is: "<<sum<<endl;
return 0;
}
Explanation:
Read the value of "n" from user. Declare and initialize variable "sum" to store the sum of series.Create a function to Calculate the factorial of a given number. Calculate the sum of all the term of the series 1+1/1!+1/2!.....+1/n!.This will be the approx value of "e".
Output:
enter n:12
Approx Value of e is: 2.71828
Answer:
2002
Explanation:
Please mark me brainliest :)
Answer: No, because all you need is WiFi for both devices and a messaging app to do it for free like iMessage.
Explanation: Please correct me if I am wrong! :)
Answer:
2^7= 128
Explanation:
An instruction format characterizes the diverse part of a guidance. The fundamental segments of an instruction are opcode and operands. Here are the various terms identified with guidance design: Instruction set size tells the absolute number of guidelines characterized in the processor. Opcode size is the quantity of bits involved by the opcode which is determined by taking log of guidance set size. Operand size is the quantity of bits involved by the operand. Guidance size is determined as total of bits involved by opcode and operands.
O AND U which spells ABOUT