10-09-2025 07:37 PM
Crear un While Loop que calcule el cuadrado de un número.
Crear un For Loop que sume los números del 1 al N.
Implementar un Case Structure para evaluar si un número es positivo o negativo
Con su explicaion de cada estrucutura
10-09-2025 09:42 PM
What help do you need?
A while loop cannot square a number.
A for loop cannot add numbers.
A case structure cannot tell the sign of a value.
10-10-2025 03:42 AM
Hola,
Aquí tienes.
Saludos.
10-10-2025 04:16 AM
Hi xespizua,
@xespizua wrote:
Saludos.
10-10-2025 05:32 AM
Hi GerdW,
Regards.
10-10-2025 07:32 AM - edited 10-10-2025 07:54 AM
@xespizua wrote:
Hi GerdW,
- Even if it works ""the same way"", you are right, no need to stop inmediatly. But if you wire a false constant, the "CALCULAR CUADRADO" blank button doesn't do the mechanichal action the same way.
- I wouldn't do it that way, but he asked about a while loop to calculate the square of a number.
- You are right. Add a Wait (ms) function to the main while loop and wire a value.
- I don't know. I use a combo box to chose a value, not to type one.