20/2 = 10
4/2 = 2
10 - 2 = 8
10 + 2 = 12
12 - 8 = 4
12 + 8 = 20
The two numbers are 10 and 2
8 and 6 have a difference of 2 and a sum of 14.
Find the 2 numbers whose difference is two and whose sum is 480.
Avreage = Sum/number of values So 10 = sum/2 Multiply both sides by 2: 20 = sum
The numbers are 11 and 10
Three
24,26
9 13
0.4 and 2.
To write a program in QBasic that prints the sum of the even numbers from 1 to 20 in reverse order, you can follow these steps: DIM sum AS INTEGER sum = 0 FOR i = 20 TO 2 STEP -2 sum = sum + i NEXT i PRINT "The sum of even numbers from 1 to 20 is: "; sum This program initializes the sum to zero, iterates from 20 down to 2 in steps of -2 (to capture even numbers), adds each even number to the sum, and finally prints the result.
7 & 9
6 and 4.