Enter N: 4
2 = 2
2 + 4 = 6
2 + 4 + 6 = 12
2 + 4 + 6 + 8 = 20
that is the out put .. if i enter the number 5 is taht mean everything oging to change?
well here is what i did .. some of it ..
int main()
{
int n;
cout<<"ENTER N:";
cin>>n ;
cout<<"\t" << n/2<<"="<<"\t"<<n/2<<"\t";
cout<<endl;
When you enter 4 it will cout 2 = 2