Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

109
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda