why the exe. file print nothing when i try to run it???

#include <iostream>
using namespace std;
int main()
{int n,even,odd;
cout<<"pls enter the value of n\n";
if (n==1)cout<<"stop\n";
else if (n==even) cout<<"next no is\n"<<n/2;
else if (n==odd)cout<<"the next no is\n<<3*n+1";
else cout<<endl;
Last edited on
You have not initialized n when it is being used for the first time.
Topic archived. No new replies allowed.