Hello,
I'm getting this error:
Conversion to function_handle from double is not possible.
I already looked for the error and tried to change the code but without success. Can you help?
A=[99.23;100.05;91;107.71;104.1];
B=[3441 344...
My problem is to add cousins to a user-defined range, including ranges if they are prime.
Example:
ENTRY: 2 and 10
EXIT: 17
I was able to do this:
#include <stdio.h>
int main()
{
int numI, numF, primos = 0;
scanf("...
Why the result of L1 is: [2, 3, 4] instead of [3, 4]?
def remove_dups(L1, L2):
for e in L1:
if e in L2:
L1.remove(e)
L1 = [1, 2, 3, 4]
L2 = [1, 2, 5, 6]
remove_dups(L1, L2)
print(L1)
I tested it in Python Tut...
k <- 8
m = 100
for (i in 1:k){
x <- rnorm(mean = i,
sd = .5,
n=m)
y <- rnorm(mean = (8-i),
sd = .5,
n=m)
amostra2 <- data.frame(x,y)
}
This is the code I have. Given k and m,...
Why is it incorrect to remove an object from a collection in this way? And why the release of the ConcurrentModificationException exception?
for(String item: list) {
list.remove(item);
}
I picked up a system in the company where I work for another colleague. I note that all FOR's are like this:
for(int i = 0; i < lista.count; i++)
{
//meu código
}
I learned that when a variable within FOR starts with zero, my COUNT...
I was wondering if I can get some kind of control variable from an "% advanced"%. "
For example:
On a normal for, I do this as follows:
for (int i = 0; i < algumaCoisa.size() ou length; i++){
//código..
}
this variable for...
My question is the following, I'm developing a program (I'm a beginner) in C #.
The part I wanted to improve, is this: I'm wanting to create different events in a for structure.
For example:
public frmSelecaoDeCartas()
{
InitializeComponen...
I'm using this code, but it's not catching. I want to increment with each click on the "Increment" button.
Code:
function incrementar(){
for (let i =0; i<10; i++){
document.getElementById("incrementar2").innerHTML = i;
}...