can not convert from float to int
in
Programming Questions
•
4 months ago
Hi! Cound you please tell what's wrong in this small program?
I have float variable named "t" and the float array [] pitches. I can't get it why do I get the error "can not convert from float to int" in the last line?
int s=100;
float t;
float[] pitches= new float[s];
for (int i = 1; i< s; i++) {
pitches[i]=random(50, 100);
}
for(float i=1; i< s; i++) {
t=pitches[i];
}
1