Age = 2013 - BirthYear;
here you have declared Age and integer type variable which can store only integer data. Now, BirthYear is string type, which is why you cannot subtract it from an integer...
Type: Posts; User: satyarlenka
Age = 2013 - BirthYear;
here you have declared Age and integer type variable which can store only integer data. Now, BirthYear is string type, which is why you cannot subtract it from an integer...