Reputation: 5784
modulus = number[mul1_count] % prime_array[prime1_count];
when my code executes this line i get Floating point exception, how to overcome this ,both the arrays are of type int
Upvotes: 1
Views: 2204
Reputation: 47592
Make sure prime_array[prime1_count] is not zero.
prime_array[prime1_count]
Upvotes: 3