Pergunta de entrevista da empresa Innotical Solutions

how to execute both if and else condition simultaneously ?