Create a program that allows the user to insert 30 integer numbers. The program should return the average of the positive numbers inserted  that are multiples of 3 (the average should be a floating point number). If during the insertion the user enters a number x that is a divisor of 70 the total count of integers inserted should be decreased by x units.
E.g. the user may enter 31, 6, 10, 7, 19, 96, 5, 12 and then it should stop asking for numbers, because the total number of integers inserted is 8, but since 10, 7 and 5 were inserted, which are all divisors of 70, no more integers had to be asked for, since 8 + 10 + 7 + 5 = 30.
The program should return 38, since that is the average of 6, 96 and 12
In c++



Answer :

Other Questions