Pregunta

This is probably a simple question, but I a variable "side" to be divided by the square of the variable "curNum". Currently, my code for this looks like

side = inputNum/(curNum^2);

However, this gives me the error "Invalid operands to binary ^" How can I successfully use exponents?

No hay solución correcta

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top