In C language using CHIDE The inverse of the mathematical co
In C language using CHIDE.
The inverse of the mathematical constant e can be approximated as follows: 1/e = (1- 1/n)^n Write a C program that will loop through values of n until the difference between the approximation and the actual value is less than 0.0001.The program should then print out the actual and the approximation to four decimal places, and also print the value of n required for such accuracy.Solution
#include<stdio.H>
int main(){
float n;
float approxn;
while(n-approxn<0.0001){
n--
}
}
