Whats wrong with this?

Aug 30, 2014 at 11:43am
#include <iostream>
using namespace std;
int main()
{
char a,b,c,d,e,f,g,h,i,j,k,l,m;
int n;
cout<<"Enter your Birth Month.Press: "<<endl;
cout<<"a= January"<<endl;
cout<<"b= February"<<endl;
cout<<"c= March"<<endl;
cout<<"d= April"<<endl;
cout<<"e= May"<<endl;
cout<<"f= June"<<endl;
cout<<"g= July"<<endl;
cout<<"h= August"<<endl;
cout<<"i= September"<<endl;
cout<<"j= October"<<endl;
cout<<"k= November"<<endl;
cout<<"l= December"<<endl;
cin>>m;

cout<<"Enter the Birth Date: (1 to 31) "<<endl;
cin>>n;

if (m == 'a')
{
cout<<"Capricorn";
}


Its not printing "Capricorn", when i execute the program..
why? :(
Last edited on Aug 30, 2014 at 11:44am
Aug 30, 2014 at 12:05pm
Did you enter both inputs to your program and the first one as a.
Aug 30, 2014 at 12:29pm
yes.
It's ok now, the output has shown already.
Thank you sir.

I'm sorry for that.
Topic archived. No new replies allowed.