Assembly language writers use the keyboard to enter ten numbers and count the even number of those t

Updated on educate 2024-08-04
6 answers
  1. Anonymous users2024-02-15

    1. First open and create a new VC project.

    2. Add header DAO.

    3. Add the main main function.

    Version 4, the definition of a char type variable c.

    5. Define four int variables letters, spaces, digits, and others.

    6. Use a while loop.

    7. Statistics digits.

    8. Count other characters.

    9. Run the program and see the results.

  2. Anonymous users2024-02-14

    #include

    int main()

    for(i=0;i<=10000;i++)return 0;If.

    If you have a large number, then you can write the array on top of int main().

    I don't have a compiler here, write it down for you, I hope it can help you.

  3. Anonymous users2024-02-13

    #include

    Function name: main

    Parameters: none

    Return value: none

    Description: Count the number of students with a score of 80 or more.

    int fun(float arr,int n);

    int main()

  4. Anonymous users2024-02-12

    Finding the maximum is very simple, use a variable, assign 0, and then compare with each of the reads, less than the interchangeable, statistics positive and negative, simpler, judge greater than 0, then positive +1, less than 0, negative +1, here 0 does not seem to be a positive sweat,

  5. Anonymous users2024-02-11

    #include

    int main()

    for(i = 0;i < 10;++i)for(i = 0;i < 10;++i)else if(num[i] == 0)

    elseprintf("The number of positive numbers: %d, the number of 0s: %d, the number of negative numbers: %d. ", count[0], count[1], count[2]);

    return 0;

  6. Anonymous users2024-02-10

    #include

    int main()

    i=0,zs=0,fs=0,ling=0;

    for(i=0;i<10;i++)

    else if (a[i]<0)

    elseprintf ("Positive [%d], negative [%d], zero [%d].",zs,fs,ling);

    return 0;

    1 -2 -3 0 0 -4 7 8 9 -5 positive number [4], negative number [4], zero number [2].

    press any key to continue

Related questions
10 answers2024-08-04

Assembly language can be said to be machine language, and what deals directly with hardware is to transform computer language into 1001 that machines can recognize. It's not going to go out of style, at least not for this decade. It's mostly about the hardware side though. >>>More

5 answers2024-08-04

The general idea is to create two storage areas, one for the source string and one for the modified string. Create two loops, one for whitespace and one for string end symbols, both of which are compared with ASCII codes.

8 answers2024-08-04

First, the register position is different:

1. CS: ** segment register; >>>More

5 answers2024-08-04

People want to compile, you write a c

12 answers2024-08-04

Again, it's 1101000000

CPU It doesn't matter if you're a memory unit or a register. >>>More