Plz find the errors | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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; }

14th Aug 2017, 12:42 PM
Aamir Shehzad
Aamir Shehzad - avatar
1 Answer
+ 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
14th Aug 2017, 1:02 PM
Jonas Schröter
Jonas Schröter - avatar