最新回答 / weixin_慕村4193741
#include <stdio.h>int main() { int height = 185; //补全所有代码 if(height>=180) { printf("%s\n","恭喜小明可以参加校篮球队"); }return 0;}你在if语句下面的{}少了}。
2023-05-14
#include <stdio.h>
int main()
{
int x,y;
x = 10;
y = -3;
printf("x+y=%d\n", x+y );
printf("x-y=%d\n", x-y );
printf("x*y=%d\n", x*y );
printf("x/y=%d\n", x/y );
printf("x%%y=%d\n", x%y );
return 0;
}
int main()
{
int x,y;
x = 10;
y = -3;
printf("x+y=%d\n", x+y );
printf("x-y=%d\n", x-y );
printf("x*y=%d\n", x*y );
printf("x/y=%d\n", x/y );
printf("x%%y=%d\n", x%y );
return 0;
}
#include <stdio.h>
int main()
{
int arrFirst[3] = {4,5,6};
int arrSecond[] = {7,2,9};
int arrThird[3];
arrThird[0]=10;
arrThird[1]=0;
arrThird[2]=12;
printf("%d\n", arrFirst[1]);
printf("%d\n",arrSecond[1]);
printf("%d\n", arrThird[1]);
return 0;
}
输出结果:520
int main()
{
int arrFirst[3] = {4,5,6};
int arrSecond[] = {7,2,9};
int arrThird[3];
arrThird[0]=10;
arrThird[1]=0;
arrThird[2]=12;
printf("%d\n", arrFirst[1]);
printf("%d\n",arrSecond[1]);
printf("%d\n", arrThird[1]);
return 0;
}
输出结果:520