It says "Invalid number" when i write 1 on a and 1 on b when i start the program, whats wrong? im a newbie on c++
please helpCode:#include <iostream.h> #include <cstdio> //for pause the program using namespace std; //for pause the program main() { char a; char b; cout<<"First '+' number: "; cin>>a; cout<<"Secound '+' number: "; cin>>b; if(a==1&&b==1) { cout<<"1+1=2"; } else { cout<<"Invalid number"; } getchar();//for pause the program getchar();//for pause the program return 0; }