View Single Post
  #2 (permalink)  
Old March 20th, 2018, 08:59 PM
wasadeh wasadeh is offline
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2018
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi dTech,

You are mixing the concept of the array element index with the array element value.
The array mults has been created with capacity of 400 elements but all elements have been initialized to 0.
Your code simply is trying to pick the element values at index 13, 2*13,3*13,..and so on up to but excluding index 400. But the element values are already 0s.

Thanks,
--Wasadeh
Reply With Quote