VB commodity calculation, VB simple calculation

Updated on technology 2024-05-21
7 answers
  1. Anonymous users2024-02-11

    When a=1, b=1 to 1 , c=1 to 2 so here i is added twice, i=2

    When a=2, b=1 to 2, when b=1, c=1 to 2 so here i is also added twice, i=4

    When b=2, c=2 to 2 so here i is only added once, i=5 so that the cycle is complete, so i=5

  2. Anonymous users2024-02-10

    a=1.

    b=1 to 1

    So: c=1 to 2 ( i to add 2 times) ===> i=2

    a=2. b=1 to 2

    When b = 1.

    c=1 to 2 ( i to add 2 times) ====> i =4

    When b = 2.

    c=2 to 2 ( i only add 1 time) ====> i =5

  3. Anonymous users2024-02-09

    int function:

    int(x) to get the largest integer not greater than x.

    If x is 0, then just remove the decimal of x, if x < 0, then remove the decimal part of x and subtract 1

    This question int (because, then after removing it and becoming 7, it has to be subtracted by 1 to become 8 8 2 The result is 4

    The result was: 4

  4. Anonymous users2024-02-08

    Each time the k cycle runs, the value of a is increased by 1...

    After calculating that the k cycle has been run 14 times, a is equal to 14**********===

    The calculation process is as follows:

    When i = 1.

    j loop run 1 time.

    K cycle run 3 times.

    aA total of 3 times.

    When i=2 and j=1.

    The k cycle was run 3 times.

    When i=2 and j=2.

    The k loop was run 2 times.

    That is, when i=2, A runs a total of 5 accumulations.

    When i=3 and j=1.

    k cycle 3 times.

    When i=3 and j=2.

    k cycle 2 times.

    When i=3 and j=3.

    K cycle 1 time.

    That is, when i=3 is looped 6 times.

    ==== The specific cycle order is as follows:

    i:1j:1

    k:1k:2

    k:3*****==

    i:2j:1

    k:1k:2

    k:3---

    j:2k:2

    k:3*****===

    i:3j:1

    k:1k:2

    k:3---

    j:2k:2

    k:3---

    j:3k:3

  5. Anonymous users2024-02-07

    The first mod is to take an integer.

    The second question and means and 15 and 6

    The third question 100+100 & 100 is 200100 if you don't believe it = 100 + 100"&100 is definitely 20100

  6. Anonymous users2024-02-06

    The first question is to round each number before the operation, that is, 25 8 + 7 mod2 = 3 + 1 = 4

  7. Anonymous users2024-02-05

    What did you do during class?

Related questions
4 answers2024-05-21

General Declaration. dim x, y, z, a, b, c, d, e, iprivate sub check1_click()if = 1 then >>>More

9 answers2024-05-21

The decimal part of the date variable with a value of less than 1 corresponds to the time of day from 0:00:00 to 24:00:00 >>>More

6 answers2024-05-21

abs function: calculates the absolute value.

rnd function: Returns a single-precision number containing a random value. Without parameter, it is a decimal between 0 and 1. >>>More

6 answers2024-05-21

To give you an idea, you mainly want to get tired of the value of "what" text2 when you click the button, then you can reuse the value in the label, that is, but assuming that the value of text1 is assigned first, it will be the result when the point is more than once, so you need to add a flag variable to identify whether it has been calculated once......Others think about it, the idea is almost like this, but the form can be changeable, the key is that the function of your ** is written independently The versatility is not enough, and it is slightly more to change**.

3 answers2024-05-21

1. Solve all: Question 11 of the first picture.

1) Select C, event name. >>>More