Even C went wrong again, everyone help

Updated on society 2024-04-16
12 answers
  1. Anonymous users2024-02-07

    Grammatically, braces are missing after main.

    #include

    #include

    int main(void)

    int x=1,b=3;

    while(x<=100)

    while(b<=sqrt(x))

    if(x%b==0) printf("%d",x);

    continue;

    else b++;

    x=x+2;

  2. Anonymous users2024-02-06

    Mistake 1: As upstairs said;

    Mistake 2: int main() needs to return a value, at least with a return statement.

  3. Anonymous users2024-02-05

    You have too many mistakes, right, every function has errors, check it carefully yourself, this program is not difficult, among which your two averaging functions pay attention to what is the loop part of the first for statement, just add a curly brace on the line, and the rest yourself....

  4. Anonymous users2024-02-04

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

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

    scanf("%f",&a[i][j]);Your program doesn't have an error prompt key here>

  5. Anonymous users2024-02-03

    There is also a case of tangent, that is, when sqrt(x*x+y*y)==fabs(r1-r2), the two circles are inscribed; Whereas.

    else if(sqrt(x*x+y*y)==r)

    It's just the case of two circles cut outward.

  6. Anonymous users2024-02-02

    101 is the base 8 is the decimal 65

  7. Anonymous users2024-02-01

    At a glance, you can know how much you have learned, I am confused and sad even to look at your questions. It's better to read. Hehe. Take 5 points and leave.

  8. Anonymous users2024-01-31

    If you use the C++ compiler, the function must write the return value.

    #include

    void put(int *a)

    void deal(int *a)

    t=*max;*max=a[9];a[9]=t;

    t=*min;*min=a[0];a[0]=t;

    void output(int *a)printf("");

    int main(void)

  9. Anonymous users2024-01-30

    Al(OH)3 will decompose into Al2O3 when heated, how can it be fire-resistant?

  10. Anonymous users2024-01-29

    Several errors: 1misspelled main; 2. int a[10][5];There is no assignment, and a[10][5] is printed, and the subscript a[9][4] is output at most, which should be assigned first, and then output a[i][j].

  11. Anonymous users2024-01-28

    #include

    int main()

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

    The largest subscript is a[9][4], a[10][5] has crossed the bounds and overflowed}return 0; }

  12. Anonymous users2024-01-27

    Are you sure you're posting ** and not stickers?

Related questions
21 answers2024-04-16

Go to the hospital and let the doctor see it.

9 answers2024-04-16

What's wrong with the long distance?! Long-distance love can come together to make envy! As long as you are sincere, the distance is even more precious! >>>More

8 answers2024-04-16

Complaining won't solve anything, so it's better to sort out your mood and start again. Be an honest person, don't tell lies, do more practical things, and treat people with sincerity. Be a self-aware person, don't talk big, don't brag, and be a down-to-earth person. >>>More

12 answers2024-04-16

Dream about monkeys sleeping : going on a trip to a foreign country. Dream About Monkeys Eating : >>>More

11 answers2024-04-16

Since you're friends, you should do your best to help him! >>>More