a[i] = b * c[i]; Comes With Errors Inside For & While Loops

for(int k=0; i<=5; i++){

Why are you initializing 'k' but incrementing 'i' and also using 'i' as the array indices?

Pete