Excuse me, some C questions.

Updated on educate 2024-05-21
6 answers
  1. Anonymous users2024-02-11

    Landlord: Leave your QQ behind.

    1. Find the greater of the two numbers.

    #include

    main()

    float a,b,max;

    scanf("%f%f",&a,&b);

    if(a>b)

    max=a;

    elsemax=b;

    printf("the max is %f",max);

    To be continued.

  2. Anonymous users2024-02-10

    most of the people( _to the party )were famous scientists.

    Inside the parentheses are the words "people".

    a is a past participle postposition, invited to the party. OK.

    c No, when it is carried out, it means that it is being invited, which is obviously not right, because everyone is here, and it is obvious that it has been invited a long time ago.

  3. Anonymous users2024-02-09

    No. Because it's not a work in progress.

  4. Anonymous users2024-02-08

    The meaning of the title is:

    Give you a number, let's say it's 6

    Add a number to the left of 6 that is less than or equal to half of the number given to you (6 2 = 3).

    So you can add 1 or 2 or 3 to the left of 6 to get: 16, 26, 36, and then continue to add less than or equal to half of the leftmost number of the number to the left of the whole number according to the above method, (that is, less than or equal to 1 2, 2 2, 3 2).

    So we can get the numbers again: 126, 136

    Then continue to follow the steps just now, but there are no numbers less than or equal to 1 2, so the program is over.

    Can you understand this?

    In the case of the program,Generally, after knowing the idea.,Try to write it yourself.。。

  5. Anonymous users2024-02-07

    The meaning of this title is say, 6

    Numbers that are not more than half of 6 are 1, 2, and 3

    So 16, 26, 36 are all okay.

    16 There is no satisfaction.

    26 then has 126 because 1 is exactly half of 2.

    36 has 136 in the same way.

    So there are 6 numbers in total.

  6. Anonymous users2024-02-06

    This problem can be solved recursively, the number of n:

    int judge(int n)

    int count=0;

    for(int i=int(n/2);i>=1;i--)count+=judge(i);

    return count;

    Note: The above is pseudo**!!Please understand the meaning and optimize it yourself, that's the way of thinking.

Related questions
8 answers2024-05-21

Prenuptial debts are personal debts that do not need to be borne jointly by both spouses. >>>More

4 answers2024-05-21

1."Morning Flowers and Sunset" is a collection of essays written by Mr. Lu Xun in 1926. So far, we've learned about the and >>>More

14 answers2024-05-21

1.Find the present value of compound interest p=200000*(p f,8%,10)=200000* >>>More

9 answers2024-05-21

1.Everyone's faces were filled with excitement and pride, some applauded enthusiastically in their seats, and some stood up and hugged deeply with their partners. Seeing the Shenzhou 5 spacecraft smoothly enter space, and seeing that their efforts have been rewarded, their hearts are even happier than the surging river! >>>More

3 answers2024-05-21

/proc/cpuinfo

var/log/dmesg -n1 >>>More