this is because cin>>char asks for a single character, not a number.