VB program for 1-40 can be divided by 5 to get the sum of all numbers
dim sum%,i%
for i=1 to 40
if i mod 5=0 then sum=sum+i
next
print sum
RELATED INFORMATIONS
- 1. A three digit decimal can be divided by 5 after adding 5, by 3 after subtracting 3, and by 2 after dividing 2. What is the minimum number of three digits
- 2. A three digit number can be divided by 5 after adding 5, by 3 after subtracting 3, and by 2 after dividing 2. What is the minimum number of this three digit number?
- 3. The number a can be divided by 3, and () by 9. If a can be divided by 9, then () by 3? A can definitely B can't necessarily C can't
- 4. The remainder of the sum of the first 2008 positive integers that can be divided by 2 and 3 is () The remainder of the sum of the first 2008 positive integers that can be divided by 2 and 3 is () My method is very troublesome, the answer is 6. Which master has a better method?
- 5. A number that can be divided by eleven, divided by nine to eight, divided by seven to six, divided by five to four, divided by three to two
- 6. If a divides B, then a is a multiple of B and B is a divisor of A______ .
- 7. A three digit number is not only a multiple of 2, but also divisible by 7, and 5 is its divisor. What is the minimum number of the three digit number?
- 8. If a divided by B equals 9, then a must be divisible by B
- 9. 8 divided by 4 equals 2, so is 8 divisible by 4 or 4 divisible by 8? fast
- 10. What is the relationship between a divided by B equals 7? 1. A is a multiple of B 2. A is 7 times of B 3. A can be divided by B 4. The common divisor of a and B is 7 This is a multiple choice question Wrong number 1; a is a multiple of B 2; a is 7 times of B 3; a can be divided by B 4; the common divisor of a and B is 7
- 11. VB program to find out the number of three digits with 6 digits and divisible by 3?
- 12. How to write the program to find the even and odd number between 1-100 and the number that can be divided by 3 and 5 at the same time in VB
- 13. From the six numbers 1, 2, 3, 4, 5, 6, take any three to form a three digit number, among which there are several that can be divided by 6, how to program with VB Or take any three of the six numbers from 0 to 9 to form a three digit number. How to make up this situation?
- 14. Choose three different numbers from the four numbers 0, 1, 5 and 6 to form three digits that can be divided by 3 and 5 at the same time, Find the sum of the maximum and minimum of such three digits
- 15. Among the three digit numbers composed of 0, 1, 2, the ones that can be divided by 2 are (), the ones that can be divided by 3 are () and the ones that can be divided by 5 are ()
- 16. Take any two numbers from 1, 3, 5 and 7, and take any two numbers from 2, 4, 6 and 8 to form a four digit number without repetition. The number of four digits divisible by 5 is () A. 120 B. 300 C. 240 D. 108
- 17. Among the five numbers 2-6, any four different numbers can form a total of 120 four digit numbers. Among them, what is the largest four digit number divisible by 45?
- 18. A multiple of 2 and 5 at the same time must be a multiple of 10______ (judge right or wrong)
- 19. There is a number in 460-500 that is a multiple of three and can be divisible by 2 and 5. What's the number
- 20. What kind of number can be divided by 9? Is it a multiple of 3 and 5 at the same time? Is it a multiple of 15/