|
|
back to boardI tried this but got wrong answer any idea?? #include <iostream> using namespace std; int main() { int m,n,k; cout<<"enter m n k "; cin >> m >> n >> k; if ( m>0 && m<19 ) { if ( k>1 && k<6 ) { if ( n>0 && n<23 ) { cout<<(m+k+n); } else cout<<"enter n between 0 and 23"<<endl; } else cout<<"enter k between 1 and 6"<<endl; } else cout<<"enter m between 0 and 19"<<endl; return 0; } |
|
|