Pregunta de entrevista de Innotical Solutions

how to execute both if and else condition simultaneously ?