At Westonci.ca, we make it easy to get the answers you need from a community of informed and experienced contributors. Join our platform to connect with experts ready to provide accurate answers to your questions in various fields. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our platform.
Sagot :
espanol;
Escriba una declaración if-else que asigne 0 a la variable b si la variable a es menor que 10. De lo contrario, debería asignar 99 a la variable b
respuesta:
Una declaración if le dice al programa que ejecute un bloque de código, si una condición es verdadera. En el siguiente código, escribimos un mensaje solo si x es mayor que 0:
var x = 5;
if (x > 0) {
text('¡x es un número positivo!', 200, 200);
}
ingles;
Write an if-else statement that assigns 0 to the variable b if the variable a is less than 10. Otherwise, it should assign 99 to the variable b .
answer:
An if statement tells the program to execute a block of code, if a condition is true. In the following code, we write a message only if x is greater than 0:
var x = 5;
if (x> 0) {
text ('x is a positive number!', 200, 200);
}
xd
We appreciate your visit. Hopefully, the answers you found were beneficial. Don't hesitate to come back for more information. We appreciate your time. Please come back anytime for the latest information and answers to your questions. Keep exploring Westonci.ca for more insightful answers to your questions. We're here to help.