The sum of 1 to 50 is odd or even

The sum of 1 to 50 is odd or even


one thousand two hundred and seventy-five
(1 + 50) × (50 △ 2) = 1275 is odd (not divisible by 2)



(1+2+3+…… +Is the product of (2000 + 2001) × (1 + 2 + 3 +. + 10) odd or even? Why?


Obvious odd number
1+2+3+.+10=55
1+2+3+…… +2000 = bit must be 0
1+2+3+…… +2000 + 2001 = 1
A number whose bits are 1 * 55 bits are 5
In fact, just press the calculator



It is arranged according to 1.2.3.4.5.6.7.8.9. Is 100 odd or even?


Even number



3.5.6.7.8.9?


The odd number is 3 5 7 9
Even numbers are six or eight



There are nine numbers from 1 to 9 to classify them. For example, 1,3,5,7,9,2,4,6,8 divide them into two categories according to odd and even numbers
There are nine numbers from one to nine to classify them
for example
They are divided into two categories according to odd and even numbers
Now ask
nine
According to what are they divided into three categories


According to the four tones of Chinese Pinyin
One, three, seven, eight are the first,
5 and 9 are the third,
Two and four are the fourth
It's not really a strict mathematical problem
Choose me, hand fight



Is the sum of 1 + 2 * 3 + 4 * 5 + 6 * 7 +... + 100 * 101 odd or even


Odd times even is even
SO 2 * 3, 3 * 4 100 * 101 are even numbers
Then they add up to an even number
1 is an odd number
1 plus an even number is odd
So this sum is odd



Is the sum of 1 + 2 * 3 + 4 * 5 + 6 * 7 +. + 100 * 101 odd or even?


The products of 2 * 3 and 4 * 5 are even, even + 1 = odd



In VB, the values of the expression (14 + 34 / 4) mod 4 are (). A, 0 B, 1 C, 2 D, 3 d
In the expression (), the value of (4.4) is VB
A、0 B、1 C、2 D、3


34\4=8
14+8=22
22 mod 4=2
So the result is C 2



How to write the function of odd sum and even sum of 1 to 100 in VB
Write with function


Create a button in the window: function Total (num1, num2) as string 'num1 is odd and' num2 is even and for I = 1 to 100 if I mod 2 0 then num1 = num1 + I else num2 = num2 + I end if next total = "odd sum: & num1 & even sum: & num2 end function private sub command1_ Click() Me.Print Total(a, b) End Sub



The sum of odd and even numbers within 100 VB


Dim i as Integer,j as Integer,o as Integer
j = 0
o = 0
For i = 1 To 100 Step 2
j = j + i
o = o + (i + 1)
Next
Debug.print Odd sum within 100: & J & even sum: & O