Please help me look at the question of this C

Updated on collection 2024-05-20
3 answers
  1. Anonymous users2024-02-11

    #include

    void main()

    int a[5][5];

    int k=0,i,j,y,w,x;

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

    for (j=0;j<=4;j++)

    a[j][i]=++k;

    for (x=i+1;x<=4;x++)

    a[j-1][x]=++k;

    for (y=j-2;y>=0;y--)

    a[y][j-1]=++k;

    for (w=j-2;j>=1;w--) for (w=j-2; w>=1;w--) otherwise the loop is endless.

    a[i][j-1]=++k;

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

    for (j=0;j<=4;j++)

    Cout: "But even so, you have to have a mental tolerance for the answer to the output.

  2. Anonymous users2024-02-10

    for (w=j-2;j>=1;w--)

    This sentence is not written incorrectly, it should be for (w=j-2; w>=1;w--)

  3. Anonymous users2024-02-09

    Summary. C++ is a high-level programming language for computers, which was first developed by Benjani Strausstrup in 1979 at AT&T Bell Studios.

    C++ can not only carry out the process programming of the C language, but also carry out the object-based programming characterized by abstract data types, and can also carry out the object-oriented programming characterized by inheritance and polymorphism. C++ excels at object-oriented programming as well as process-based programming.

    C++ has the practical characteristics of computer operation, and it is also committed to improving the programming quality of large-scale programs and the ability of programming languages to describe problems.

    Ask a C++ question.

    C++ is a high-level programming language for computers, which was first developed by Benjani Strausstrup in 1979 at AT&T Bell Studios. C++ can not only carry out the process programming of the C language, but also carry out the object-based programming characterized by abstract data types, and can also carry out the object-oriented programming characterized by inheritance and polymorphism. C++ excels at object-oriented programming as well as process-based programming.

    C++ has the practical characteristics of computer operation, and it is also committed to improving the programming quality of large-scale programs and the ability of programming languages to describe problems.

    Ask about custom messages].

    Ask about custom messages].

    The output is: 2467

Related questions
7 answers2024-05-20

My own is the N80 Chocolate Edition, and my friend's is the Lenovo Y450, and these two comparisons have their own strengths and weaknesses. >>>More

2 answers2024-05-20

Your graphics card is indeed a bit outdated, and the 9400GT is really not good for gaming. >>>More

4 answers2024-05-20

First of all, you have a problem in the title, that is, the first one should be the department table, I assume it is called d emp. >>>More

7 answers2024-05-20

The body temperature is normal and it should be nothing. Because like those more serious diseases, such as dog plague, the first symptoms will be fever. Small ones will have diarrhea, and little babies don't have these symptoms. >>>More

12 answers2024-05-20

It's annoying to the emotion, and then it's actually very normal, many times the relationship is a headache, and there will be one question or another.