Actualmente estoy creando un programa de calculadora simple y me encontré con un problema con esta línea de código:
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 ");La aplicación me da un "SyntaxError: Fin de entrada inesperado" y cita la línea justo después del código mostrado anteriormente. ¿Hay algún problema con el código dado? ¿O me estoy perdiendo algo más?
Creo que el problema está en este "]":
var op1 = readLine("Enter the first operator ]");Borralo y prueba.