-
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;
-
Mistake 1: As upstairs said;
Mistake 2: int main() needs to return a value, at least with a return statement.
-
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....
-
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>
-
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.
-
101 is the base 8 is the decimal 65
-
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.
-
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)
-
Al(OH)3 will decompose into Al2O3 when heated, how can it be fire-resistant?
-
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].
-
#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; }
-
Are you sure you're posting ** and not stickers?
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
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
Dream about monkeys sleeping : going on a trip to a foreign country. Dream About Monkeys Eating : >>>More
Since you're friends, you should do your best to help him! >>>More