There s a hollow trapezoidal C program that can t be written, so help

Updated on technology 2024-05-25
13 answers
  1. Anonymous users2024-02-11

    I don't understand too much, big brother! Give an example! For example, what is input, what is output...Come on! I'm not available if it's late!

  2. Anonymous users2024-02-10

    Question 1 Procedure:

    #include

    void main()

    printf("The number is: %d",sum);

    Question 3: include

    #define n 20

    void main()

    printf("%f",sum);

    The fourth question is 9!If the ticket sample is not the same, it is 2*9!

    Question 5: include

    #define n 1000

    void main()

    printf("%d",sum);}

  3. Anonymous users2024-02-09

    The program mainly has syntax errors and algorithm problems, the following is the correct answer after the actual combat on the machine, please refer to include

    #include

    void main()

    printf("The string after the connection is:");

    printf("%s",str3);

    The last for loop is redundant, removed, and then the character array output format is changed to printf("%s",str3);Can.

  4. Anonymous users2024-02-08

    It's always right, only the last two lines can be changed.

    for(i=0;i<=len1+len2;i++)printf("%s",str3[i]);

    It needs to be modified to:

    for(i=0;i<=len1+len2;i++)printf("%c",str3[i]);

    Or simply :

    printf("%s",str3);

  5. Anonymous users2024-02-07

    Can do it with arrays, here's the answer I copied from a book.

    #include

    void main()

  6. Anonymous users2024-02-06

    Exponentiation!

    If you want to represent a very small number, the easiest way to do this is to write it directly.

    Or use the pow function, pow (base, exponent).

  7. Anonymous users2024-02-05

    The idea is right, a little wrong in the details.

    It is recommended that you practice again with the pointer, after all, the pointer is used more.

  8. Anonymous users2024-02-04

    for loop nesting, it's simple! I knocked out the ** in three minutes, but I didn't connect to the Internet!

  9. Anonymous users2024-02-03

    int a,b,c;

    printf("Welcome to the childish program made by contemptible people, hehe, let's start the test! You ready? 1,yes 2,no !");

    scanf("%d",&a);

    if(a==1) *The judgment is based on == instead of the assigned symbol =* else

    printf("Forget it, I can't tell the gender apart, it's unexpected! ");

    elseprintf("Then come back later! 886!");

    printf("I wanted to write a long time, but I had time and patience with wood! Please forgive me for your understanding! Press Enter to return! ");

  10. Anonymous users2024-02-02

    a==1 is the judgment, and a=1 is to assign a value.

    vc 6 compiles passed.

    #include

    int main ()

  11. Anonymous users2024-02-01

    Halo Where the parentheses should be enlarged, the parentheses must be enlarged, understand?

  12. Anonymous users2024-01-31

    1 is the value of two numbers that are exchanged.

    2 is the exchange pointer.

    3 is a function, which involves the passing of parameters.

    Program for 1: main().

    Program 2: main().

    Note that the values of a and b are unchanged at this time.

    3 of the program. swap1( int * pa, int * pb )main()

  13. Anonymous users2024-01-30

    Not bad! It's best to write a flowchart yourself.

    It's very good for you, I personally think that being able to write a flowchart quickly is sometimes more important than typing, and it's a way to improve your problem-solving skills.

    Can't be lazy.

Related questions
5 answers2024-05-25

The main thing is that you put this line using namespace std; Put it in main(), and then call cout to output it, so you should put it in front, or add it directly to the header file. h can be used, or it can be placed in front of the function in which iostream is called. Such as: >>>More

8 answers2024-05-25

The reason is that you declare that the totleweight() function is a friend function of car, but you do not declare that it is a member function of boat, so you cannot directly access the private data members of the boat class.

9 answers2024-05-25

First of all, there is a difference in the definition of void delay1ms(), and the call is as follows: >>>More

4 answers2024-05-25

Question 2. chomp($str=);

my @array=split/[ str; >>>More