No decimal numbers allowed

Added ‘else if’ condition to prevent decimal point numbers.