Write a program that prompts the user for a value for i and displays the e value, and this is all i have so far. I was told it's suppose to have two for loops but i'm not sure where and how to do it and i know my output is wrong as well, also the use of a for loop is important.
#include <iostream>
using namespace std;
int main (){
double count;
double i=1;
double e;
cout<<"What is the value for i?";
cin>>i;
for(count=1;count<=i;count++){
e!=1/count;
cout<<"The value of e is equal to :"<<e<<endl;
}
system ("pause");
return 0;
}