Pregunta de entrevista de Craftsman Automation

Do the programming on c/c++ on logic based question on logical operator