C language programming, the process of finding detailed solutions.

Updated on technology 2024-04-01
8 answers
  1. Anonymous users2024-02-07

    Program Problem 1: include

    int main(void)

    printf("I am a college student");

    return 0;

    Program Problem 2: include

    int f(int x)

    return x * x + 2 * x + 1;

    int main(void)

    printf("f(5) = %d", f(5));

    return 0;

    For reference, you still have to write it yourself. C is not difficult to get started.

  2. Anonymous users2024-02-06

    Student, I just learned C language, this is not very difficult programming! I suggest you think about it, it should be possible to do it, if you look at other people's ** now, the later exams are very dangerous, and it is more difficult to take the second level! For the final exam, let's take a look at the book now!

  3. Anonymous users2024-02-05

    #include

    int main(void)

    printf("I am a college student");

    return 0;

    Annotate your own name, professional class, and other information here.

    #include

    float f(float i)

    return (i+1)*(i+1);

    int main(void)

    printf("f(x)=x*x+2*x+1");

    printf("f(5)=%f",f(5));

    return 0;

  4. Anonymous users2024-02-04

    First of all, columnar. 1) x+y+z = 8, x is the number of 10 rings, y is the number of 7 rings, z is the number of 5 rings.

    In columnar form. 2) 10*x+7*y+5*z=53, from 1) formula, x=8-y-z;

    Bring in 2) got.

    80-10*y-10*z+7*y+5*z = 53, and finally simplified to obtain 3*y+5*z = 27, z=(27-3*y) 5;

    Okay, now we can program.

    int x, y, z ;

    int ret ;

    Guess that y is between 0 and 8 based on the proposal.

    for ( y=0;y<=8;y++)

    I haven't compiled it, but that's the idea.

  5. Anonymous users2024-02-03

    Let them be A, B, and C rings, respectively.

    then there is a+b+c=8

    10a+7b+5c=53

    where a<5, b<8, c<11 (this should not be explained) include

    void main()

  6. Anonymous users2024-02-02

    Write your thoughts. int x,y,z;x, y, and z are 10, 7, and 5 rings, respectively.

    int total=8;

    for(x=0;x<=total;x++)for(y=0;y<=total-x;y++)for(z=0;z<=total-x-y;z++)

  7. Anonymous users2024-02-01

    Landlord, do you change to: define(x,y) (x>y?x:y) Give it a try.

    Change this place a bit, and the output is correct. Here's why.

    Why, the specific reasons have not been analyzed.

  8. Anonymous users2024-01-31

    It should be: 353

    bSince there are no curly braces after if, this one only has t=a; This statement is t=a under this judgment;

    The value of t after this sentence is executed is 3

    a=c;The value of a after this sentence is executed is 5

    c=t;The value of c after this sentence is executed is 3

    aSince there are no curly braces after if, t=b; In this judgment, but a=5, b=4, c=3, because the condition is not satisfied, so t=b; Not executed.

    b=a;The value of b after this sentence is executed is 5

    a=t;The value of a after this sentence is executed is 3

    Therefore, the final output is 353

Related questions
10 answers2024-04-01

You start by writing a function to find a sequence.

Then use for or while to call the !! >>>More

6 answers2024-04-01

**The Way of Microsoft Core Technology Series.

Executive summary. From the perspective of a Microsoft insider, this book reveals all aspects of software coding, software testing, and project management. >>>More

25 answers2024-04-01

First think about how many parts the whole program needs, and then what functions each part needs, and then think about the process of each part, the global variables needed, and then make it up according to the content of the design.

4 answers2024-04-01

The introductory course of MCU C language programming is not difficult, it is not easy to say, and the first thing to understand is to understand what these two things are when learning MCU C language? The introductory programming of single-chip microcomputer is mainly to learn C language, followed by circuit and programming language. >>>More

7 answers2024-04-01

#include

using namespace std; >>>More