Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

105
Visualizações
Issue with user input

I am currently creating a simple calculator program and have run across an issue with this line of code:

    var n1 = readInt("Enter the First Number in Equation ");
    var op1 = readLine("Enter the first operator ]");
    var n2 = readInt("Enter the Second Number in the Equation ");
    var op2 = readLine("Enter the Second Operator ");
    var n3 = readInt("Enter the Third Number in the Equation ");

The application gives me a "SyntaxError: Unexpected end of input" and cites the line right after the previously shown code. Is there any issues with the given code? Or am I missing something else?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I think that the problem is in this "]":

var op1 = readLine("Enter the first operator ]");

Delete it and try.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda