0
Plz find the errors
#include <iostream> using namespace std; int main() { char ch; cin>>ch; if (ch>='A')&&(ch<='Z') cout <<"you enterd">> ch >>"capital letter"; else if (ch>='a')&&(ch<='z') cout <<"you entered "<<ch<<" small letter"; else if (ch>=0)&&(ch<=9) cout <<"you enterd "<<ch<<"digit no"; else cout <<"you entered a symbol"; return 0; }
1 Respuesta
+ 3
You create an if-statement like this:
if (x != 2 && x != 5)
not
if (x != 2)&&(x != 5)
https://code.sololearn.com/cGVCK3cKIj1t/?ref=app