Westonci.ca is the premier destination for reliable answers to your questions, brought to you by a community of experts. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.
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. Our platform is always here to offer accurate and reliable answers. Return anytime. Thanks for using our platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. Discover more at Westonci.ca. Return for the latest expert answers and updates on various topics.