Don't know asdfghjklpoiuytrewqzxcvbnm,
The code below is written in javascript which gives us the integer,
<h3>The function code is</h3>
function solution (num){
//Javascript function
var x=0,sum=0,a,b;
var d=""; //variable declaration
var digits = num.toString().split('');
var Individual = digits.map(Number);
//console.log(Individual);
for (var i=0;i<Individual.length;i++)
{//For loop
x=x+Individual[i];
}
var y=x*2;
for(var i=0;i<Individual.length;i++)
{
sum=sum+Individual[i];
d=""+d+Individual[i];
if(sum==y)
break;
if(i==Individual.length-1)
{
i=-1;
continue;
}
}
console.log("the value is "+d);
}
var number = prompt("enter the number");
//Asking user for value...
console.log("the number is");
console.log(number);
solution(num
For more information on javascript, visit
brainly.com/question/16698901?referrer=searchResults
Sometimes I just meet some Unintelligen ppl
Answer:
Rojo
Explanation:
No, valores de otros colores 255 para rojo. Esto conducirá al color rojo.
Answer:
The operation of 6*x only executes if x is greater or equal to 0, since x=-10 and -10 is less than 0, the operation does not execute. For this reason, the value of y using this code is None.
Explanation:
In python a function is defined with the syntaxis:
def function(x):
the operation to execute (x)
value to return
In this case, the function is foo and the parameter is x:
def foo(x):
if x>= 0:
return 6*x
The code starts by assigning a value to x. Then, the code asks if the value of x is grater or equal to 0, if this condition is meet, then the code returns the value of 6 times x, if not, then the code does not return a value. In this case, x is -10 and this value is not grater or equal to 0. Given that the condition is not met, then the code stops executing and the value of y is none.