will calculate and display the sum of all even even numbers from 2 to n, where n is a positive number inputted by the user..what will i do and what is the expression of that???

will result in e being equal to the remainder of the division of e by 2. In other words, if e is even, e will become 0, if e is odd, e will become 1, and e will not change after that no matter how many times you loop.
To display the sum of all even numbers, you will need TWO variables, one for the sum and one for the even numbers. You should loop according to the even numbers until you get to n, add add them up using the sum.
Have a go and let us know if you need more help.

main()
{
clrscr();
int e,n,x;
e=1;
cout<<"n: ";
cin>>n;

do
{
e=e%2;
cout<<"\nn: "<<e;

} while ((e<=n) && (e++));

this my problem i can't fix it!! where n is a positive number inputted by the user. display the sum of all even numbers form 2 to n??using loop.

There are plenty of problems in your code
1) You are using non-standard headers(iostraem.h,conio.h). You should be sticking to standard headers. You only require <iostream> in your code.
2)Implicit int in main is wrong. main always returns int.
3)clrscr() is again non-standard function. Better not use it.
4) Use more descriptive variable names.
You should be doing something like this

#include <iostream>
using namespace std;
int main()
{
int sum = 0,num;
cout<<"Enter the number: ";
cin>>num;
do
{
if(!(num&1))
sum += num;
}
while (--num);
cout<<"sum of even numbers:"<<sum;
}

Sequential even numbers are 2 apart, so what's wrong with going from 2 to n in steps of 2?

For example:

#include <iostream>
using namespace std;
int main(){
int sum = 0, n = 0;
cout << "Enter n: ";
cin >> n;
for(int e = 2; e <= n; e+=2)
sum += e;
cout << "Sum of even numbers from 2 to " << n << " is " << sum << endl;
return 0;
}

APLX is a very complete implementation of the APL programming language from MicroAPL. The company stopped producing it in 2016 and it has been taken over by Dyalog. While Dyalog ...