You are viewing a single comment's thread. Return to all comments →
NO ERROR BUT IT SHOWS ERROR WHY?
using namespace std;
int main() { int n; cout<<"Enter the positive number from One to Nine="<>n;
if(n==1) { cout<<"One"; } else if(n==2) { cout<<"Two"; } else if(n==3) { cout<<"Three"; } else if(n==4) { cout<<"Four"; } else if(n==5) { cout<<"Five"; } else if(n==6) { cout<<"Six"; } else if(n==7) { cout<<"Seven"; } else if(n==8) { cout<<"Eight"; } else if(n==9) { cout<<"Nine"; } else { { cout<<"Greater than nine."; } return 0;
Seems like cookies are disabled on this browser, please enable them to open this website
Conditional Statements
You are viewing a single comment's thread. Return to all comments →
NO ERROR BUT IT SHOWS ERROR WHY?
include
using namespace std;
int main() { int n; cout<<"Enter the positive number from One to Nine="<>n;